public class DskppConfigurationBuilder extends Object
Constructor and Description |
---|
DskppConfigurationBuilder(SecureString base64String,
DskppProvisioningProtocol provisioningProtocolVersion,
DskppProvisioningCallback dskppCallback,
android.os.Handler dskppCallbackHandler,
boolean wipePinBase64String)
Initialize builder with mandatory configurations.
|
DskppConfigurationBuilder(URL serverUrl,
SecureString userId,
SecureString enrollmentPassword,
DskppProvisioningProtocol provisioningProtocolVersion,
DskppProvisioningCallback dskppCallback,
android.os.Handler dskppCallbackHandler,
boolean wipeUserIdPassword)
Initialize builder with mandatory configurations.
|
Modifier and Type | Method and Description |
---|---|
ProvisioningConfiguration |
build()
Build
DskppConfiguration object. |
void |
cancel()
To be used when the building is for any reason cancelled before calling the
build()
method. |
DskppConfigurationBuilder |
setApplicationName(SecureString appName)
Set the application name.
|
DskppConfigurationBuilder |
setApplicationVersion(SecureString appVersion)
Set the application version.
|
DskppConfigurationBuilder |
setCapability(SecureString capability)
Set capability.
|
DskppConfigurationBuilder |
setDeviceFormFactor(SecureString deviceFormFactor)
Set device form factor.
|
DskppConfigurationBuilder |
setDeviceFriendlyName(SecureString name)
Set device friendly name.
|
DskppConfigurationBuilder |
setListToReceive(List<SecureString> listToReceive)
Set list of tags for parsing DSKPP message and return by responseCallback ex:
"mpdskpp:OOBSExtensionType","mpdskpp:PushExtensionType".
|
DskppConfigurationBuilder |
setListToSend(List<android.util.Pair<String,SecureString>> listToSend)
List of tags for sending to a server as DSKPP message <"mpdskpp:AppName","MobilePASS NG">.
|
DskppConfigurationBuilder |
setParametersVersion(SecureString version)
Set the parameter version of DSKPP provisioning.
|
DskppConfigurationBuilder |
setPushCapable(boolean pushCapable)
Set if push is capable.
|
DskppConfigurationBuilder |
setRootStatus(boolean rooted)
Set the root status of the device.
|
DskppConfigurationBuilder |
setSecurityLevel(SecureString level)
Set the security level.
|
DskppConfigurationBuilder |
setTlsConfiguration(DskppTlsConfiguration tlsConfig)
Set TLS configuration.
|
public DskppConfigurationBuilder(URL serverUrl, SecureString userId, SecureString enrollmentPassword, DskppProvisioningProtocol provisioningProtocolVersion, DskppProvisioningCallback dskppCallback, android.os.Handler dskppCallbackHandler, boolean wipeUserIdPassword)
serverUrl
- The address of the server to be used for the provisioning. Never null
.userId
- The ID of the user for which the token shall be provisioned. Never null
.enrollmentPassword
- The password of the enrollment process. Never null
.provisioningProtocolVersion
- The version of the provisioning protocol to use (this depends on the DSKPP version
used). Never null
.dskppCallback
- The object of callback called when the SDK wants to inform the client application.
Never null
.dskppCallbackHandler
- The handler defining which thread the callbacks shall be redirected onto. If null
then the callbacks will be called directly by the background thread handling
the ongoing operation (from which the callback is triggered).wipeUserIdPassword
- Pass true
to wipe the userId
and enrollmentPassword
values
after these are taken.public DskppConfigurationBuilder(SecureString base64String, DskppProvisioningProtocol provisioningProtocolVersion, DskppProvisioningCallback dskppCallback, android.os.Handler dskppCallbackHandler, boolean wipePinBase64String)
base64String
- The base 64 encoded data containing the server URL, the user ID and the enrollment
password. Never null
.provisioningProtocolVersion
- The version of the provisioning protocol to use (this depends on the DSKPP version
used). Never null
.dskppCallback
- The object of callback called when the SDK wants to inform the client application.
Never null
.dskppCallbackHandler
- The handler defining which thread the callbacks shall be redirected onto. If null
then the callbacks will be called directly by the background thread handling
the ongoing operation (from which the callback is triggered).wipePinBase64String
- Pass true
to wipe the base64String
values after this is taken.public DskppConfigurationBuilder setListToSend(List<android.util.Pair<String,SecureString>> listToSend)
listToSend
- The list of tags to use. Never null
.null
.public DskppConfigurationBuilder setListToReceive(List<SecureString> listToReceive)
listToReceive
- The list of custom data tags to retrieve from the server response. Never null
.null
.public DskppConfigurationBuilder setTlsConfiguration(DskppTlsConfiguration tlsConfig)
tlsConfig
- TlsConfiguration
public DskppConfigurationBuilder setApplicationName(SecureString appName)
appName
- application namepublic DskppConfigurationBuilder setApplicationVersion(SecureString appVersion)
appVersion
- application versionpublic DskppConfigurationBuilder setRootStatus(boolean rooted)
rooted
- if the device is rootedpublic DskppConfigurationBuilder setParametersVersion(SecureString version)
version
- the versionpublic DskppConfigurationBuilder setCapability(SecureString capability)
capability
- public DskppConfigurationBuilder setSecurityLevel(SecureString level)
level
- the security level.public DskppConfigurationBuilder setDeviceFriendlyName(SecureString name)
name
- device name defined by the application.public DskppConfigurationBuilder setDeviceFormFactor(SecureString deviceFormFactor)
deviceFormFactor
- public DskppConfigurationBuilder setPushCapable(boolean pushCapable)
pushCapable
- public ProvisioningConfiguration build()
DskppConfiguration
object.ProvisioningConfiguration
implementation.public void cancel()
build()
method.
It performs the cleanup of the sensitive resources.