Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The provisioning is part of the merchant application onboarding process.

  • It is assumed that the merchant’s backend administrator has defined the device models, and registered devices and users for each application instance.

  • The way these parameters are persisted, encoded, and transmitted to the application onboarding process is not known to the SCSDK.

...

Howto

The secureClient Provisioning and start can be achieved via the singleton instance of the SecureClient class.

Code Block
// Get the class instance and start provisioning
var secureClient = SecureClient.getInstance(activity, AOneAppSecurityCbk(activity))

...
secureClient.authenticate(activity)
secureClient.provision(settings)
secureClient.clientInitialize()
secureClient.clientStart()
            
Note

The SecureClient.getInstance() function needs to be called from the main thread for security related reasons. But all other As secure client related actions (functions calls) need to can be time consuming, they should not be performed from android main thread but from another thread to avoid freezing the UI. Only the SecureClient.authenticate() function will ask for device authentication on the activity main thread for security related reasons.

Now there are a few things to consider in this example: the callbacks class AOneAppSecurityCbk and the provisioning settings.

...