public class ClearTextSecretTokenConfigurationBuilder extends Object
Constructor and Description |
---|
ClearTextSecretTokenConfigurationBuilder(PinAuthInput pin,
SecureByteArray secret,
boolean wipePinAndSecret) |
Modifier and Type | Method and Description |
---|---|
ProvisioningConfiguration |
build() |
ClearTextSecretTokenConfigurationBuilder |
setTokenSequenceNumber(int tokenSequenceNumber)
Set tokenSequenceNumber
|
ClearTextSecretTokenConfigurationBuilder |
setUserTokenId(int userTokenId)
Set userTokenId
|
public ClearTextSecretTokenConfigurationBuilder(PinAuthInput pin, SecureByteArray secret, boolean wipePinAndSecret)
pin
- The pin to be used for wrapping the secret. The value stored in this array will be wiped by the constructor if wipePinAndSecret
is set to YES
.secret
- The clear text secret seed or key to be provisioned in the SDK. The value stored in this array will be wiped by the constructor if wipePinAndSecret
is set to YES
.wipePinAndSecret
- Set YES
to let the constructor wipe the pin and secret after usage.public ClearTextSecretTokenConfigurationBuilder setUserTokenId(int userTokenId)
userTokenId
- An unsigned value ranging from 0x00 to 0xFF (i.e. 0 to 255). If no value exists, it is suggested to provide -1. It is part of the credential needed during provisioning. It must be guaranteed by the external token creation process that two tokens for the same end-user (on authentication server) and from the same domain will never have the same UTI.public ClearTextSecretTokenConfigurationBuilder setTokenSequenceNumber(int tokenSequenceNumber)
tokenSequenceNumber
- The token sequence number that distinguishes this token among others the users have. This value is defined only for CAP tokens and therefore is not used for now.public ProvisioningConfiguration build()
ProvisioningConfiguration
object.