public interface VicTokenManager extends TokenManager
TokenManager.TokenCreationCallback| Modifier and Type | Method and Description |
|---|---|
<T extends VicToken> |
createToken(java.lang.String name,
ProvisioningConfiguration configuration) |
<T extends VicToken> |
createToken(java.lang.String name,
ProvisioningConfiguration configuration,
DeviceFingerprintTokenPolicy fps) |
<T extends VicToken> |
getToken(java.lang.String name)
Gets an existing token.
|
<T extends VicToken> |
getToken(java.lang.String name,
byte[] fingerPrintCustomData)
Gets an existing token.
|
getTokenNames, removeToken, removeToken<T extends VicToken> T getToken(java.lang.String name) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException
name - the name of the tokennull if not foundRootPolicyException - when the
OtpConfiguration.TokenRootPolicy
requires this exception to be thrown when the physical device
is rooted.IdpStorageException - when database operation failed, or when the name is already
used by an existing token.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)<T extends VicToken> T getToken(java.lang.String name, byte[] fingerPrintCustomData) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException
name - the name of the tokenfingerPrintCustomData - the fingerprint custom data, can be nullnull if not foundRootPolicyException - when the
OtpConfiguration.TokenRootPolicy
requires this exception to be thrown when the physical device
is rooted.IdpStorageException - when database operation failed, or when the name is already
used by an existing token.PasswordManagerException - when the TOKEN domain is not logged in (using one of the
password managers)DeviceFingerprintException - when the fingerprint generated at runtime does not match the
expected fingerprint.<T extends VicToken> T createToken(java.lang.String name, ProvisioningConfiguration configuration) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpNetworkException
name - the name of the token
configuration - see ProvisioningConfigurationnull if not foundIdpStorageException - when database operation failed, or when the name is already
used by an existing token.PasswordManagerException - when the TOKEN domain is not logged in (using one of the
password managers)DeviceFingerprintException - when the fingerprint generated at runtime does not match the
expected fingerprint.IdpNetworkException - when there is an error during network operation.<T extends VicToken> T createToken(java.lang.String name, ProvisioningConfiguration configuration, DeviceFingerprintTokenPolicy fps) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpNetworkException
name - the name of the token.
configuration - the provisioning configuration,
see ProvisioningConfigurationfps - the device fingerprint source,
see
DeviceFingerprintSourcenull if not found.IdpStorageException - when database operation failed, or when the name is already
used by an existing token.PasswordManagerException - when the TOKEN domain is not logged in (using one of the
password managers).DeviceFingerprintException - when the fingerprint generated at runtime does not match the
expected fingerprint.IdpNetworkException - when there is an error during network operation.