public interface Token extends Authenticatable
Modifier and Type | Method and Description |
---|---|
void |
changePin(PinAuthInput oldPinAuthInput,
PinAuthInput newPinAuthInput)
Change the PIN of the token.
|
java.lang.String |
getName()
Gets the name of the token.
|
int |
getUserTokenId()
Gets the User Token Identifier.
|
boolean |
isSoft()
Returns
true if the token's credentials are software based
(the credentials are not stored inside a special hardware chip). |
void |
upgradeToMultiAuthMode(PinAuthInput pinAuthInput)
Upgrade the token to enable multi-authentication mode for this token.
|
activateAuthMode, deactivateAuthMode, getActivatedModes, getUUID, isAuthModeActive, isMultiAuthModeEnabled
java.lang.String getName()
boolean isSoft()
true
if the token's credentials are software based
(the credentials are not stored inside a special hardware chip).true
if this is a soft tokenint getUserTokenId()
The UTI is an unsigned value ranging from 0x00 to 0xFF (i.e. 0 to 255). It is generated by the provisioning server and is part of the credential pushed during provisioning. It is guaranteed that two tokens for the same end-user (on authentication server) and from the same EPS domain will never have the same UTI. See the Enrolment and Provisioning Server documentation for domains configuration description.
The UTI is defined only if the token has been created with Provisioning Protocol V3 or V5. When the token has been created with Provisioning Protocol V1 or V2 the method returns -1.
void changePin(PinAuthInput oldPinAuthInput, PinAuthInput newPinAuthInput) throws IdpException
oldPinAuthInput
- PinAuthInput with current PIN valuenewPinAuthInput
- PinAuthInput with new Pin valuejava.lang.IllegalArgumentException
- if a pin is null or contains non-digit characters.IdpRuntimeException
- when there is a cryptography operation failure.IdpException
- this is generic exception, you can directly catch this exception or catch each specific exception below.PinRuleException
- when the new PIN does not comply with the configured PIN rules.DeviceFingerprintException
- when the token's fingerprint checksum does not match.PasswordManagerException
- when the TOKEN domain is not logged in (using one of the password managers)IdpStorageException
- when database operation failed.void upgradeToMultiAuthMode(PinAuthInput pinAuthInput) throws IdpException
pinAuthInput
- pin authentication inputjava.lang.IllegalArgumentException
- if a pin is null or contains non-digit characters.IdpRuntimeException
- when there is a cryptography operation failure.IdpException
- this is generic exception, you can directly catch this exception or catch each specific exception below.DeviceFingerprintException
- when the token's fingerprint checksum does not match.PasswordManagerException
- when the TOKEN domain is not logged in (using one of the password managers)IdpStorageException
- when database operation failed.