public interface CapTokenManager extends TokenManager
TokenManager.TokenCreationCallback
Modifier and Type | Method and Description |
---|---|
<T extends CapToken> |
createToken(java.lang.String name,
ProvisioningConfiguration configuration) |
<T extends CapToken> |
createToken(java.lang.String name,
ProvisioningConfiguration configuration,
DeviceFingerprintTokenPolicy fps) |
void |
createToken(java.lang.String name,
ProvisioningConfiguration configuration,
DeviceFingerprintTokenPolicy fps,
TokenManager.TokenCreationCallback tokenCreationCallback) |
<T extends CapToken> |
getToken(java.lang.String name)
Gets an existing token.
|
<T extends CapToken> |
getToken(java.lang.String name,
byte[] fingerPrintCustomData)
Gets an existing token.
|
<T extends CapToken> |
getTokenWithUserTokenId(int uti)
Gets an existing token.
|
<T extends CapToken> |
getTokenWithUserTokenId(int uti,
byte[] fingerPrintCustomData)
Gets an existing token.
|
getTokenNames, removeToken, removeToken
<T extends CapToken> 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 CapToken> T getToken(java.lang.String name, byte[] fingerPrintCustomData) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException
name
- the name of the tokenfingerPrintCustomData
- the fingerprint custom data, can be null
null
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)DeviceFingerprintException
- when the fingerprint generated at runtime does not match the
expected fingerprint.<T extends CapToken> T getTokenWithUserTokenId(int uti) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException
uti
- the user token idnull
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 CapToken> T getTokenWithUserTokenId(int uti, byte[] fingerPrintCustomData) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException
uti
- the user token idfingerPrintCustomData
- the fingerprint custom data, can be null
null
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)DeviceFingerprintException
- when the fingerprint generated at runtime does not match the
expected fingerprint.<T extends CapToken> T createToken(java.lang.String name, ProvisioningConfiguration configuration) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpNetworkException
name
- the name of the token
configuration
- the provisioning configuration
see ProvisioningConfiguration
null
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
- IdpNetworkException when there is an error during network
operation.<T extends CapToken> 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 ProvisioningConfiguration
fps
- the device fingerprint source
see DeviceFingerprintSource
null
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.void createToken(java.lang.String name, ProvisioningConfiguration configuration, DeviceFingerprintTokenPolicy fps, TokenManager.TokenCreationCallback tokenCreationCallback)
name
- the name of the token.
configuration
- the provisioning configuration,
see ProvisioningConfiguration
fps
- the device fingerprint source,
see DeviceFingerprintSource
tokenCreationCallback
- the callback to be invoked when error occurs or when token creation is completed. It cannot be null.