public interface OathTokenManager extends TokenManager
TokenManager.TokenCreationCallback| Modifier and Type | Method and Description | 
|---|---|
<T extends OathToken> | 
createToken(java.lang.String name,
           ProvisioningConfiguration configuration)  | 
<T extends OathToken> | 
createToken(java.lang.String name,
           ProvisioningConfiguration configuration,
           DeviceFingerprintTokenPolicy fps)  | 
void | 
createToken(java.lang.String name,
           ProvisioningConfiguration configuration,
           DeviceFingerprintTokenPolicy fps,
           TokenManager.TokenCreationCallback tokenCreationCallback)  | 
<T extends OathToken> | 
createToken(java.lang.String name,
           ProvisioningConfiguration configuration,
           OathToken.TokenCapability capability)  | 
<T extends OathToken> | 
createToken(java.lang.String name,
           ProvisioningConfiguration configuration,
           OathToken.TokenCapability capability,
           DeviceFingerprintTokenPolicy fps)
Gets capabilities of an existing token. 
 | 
void | 
createToken(java.lang.String name,
           ProvisioningConfiguration configuration,
           OathToken.TokenCapability capability,
           DeviceFingerprintTokenPolicy fps,
           TokenManager.TokenCreationCallback tokenCreationCallback)  | 
<T extends OathToken> | 
getToken(java.lang.String name)
Gets an existing token. 
 | 
<T extends OathToken> | 
getToken(java.lang.String name,
        byte[] fingerPrintCustomData)
Gets an existing token. 
 | 
OathToken.TokenCapability | 
getTokenCapability(java.lang.String name)
Gets capability of an existing token. 
 | 
<T extends OathToken> | 
getTokenWithUserTokenId(int uti)
Gets an existing token. 
 | 
<T extends OathToken> | 
getTokenWithUserTokenId(int uti,
                       byte[] fingerPrintCustomData)
Gets an existing token. 
 | 
getTokenNames, removeToken, removeToken<T extends OathToken> T getToken(java.lang.String name) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpException
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.IdpException - this is generic exception, you can directly catch this
                                    exception or catch each specific exception below.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 OathToken> T getToken(java.lang.String name, byte[] fingerPrintCustomData) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpException
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.IdpException - this is generic exception, you can directly catch this
                                    exception or catch each specific exception below.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 OathToken> T getTokenWithUserTokenId(int uti) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpException
uti - the user token idnull if not foundRootPolicyException - when the
                                    OtpConfiguration.TokenRootPolicy
                                    requires this exception to be thrown when the physical device
                                    is rooted.IdpException - this is generic exception, you can directly catch this
                                    exception or catch each specific exception below.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 OathToken> T getTokenWithUserTokenId(int uti, byte[] fingerPrintCustomData) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpException
uti - the user token idfingerPrintCustomData - 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.IdpException - this is generic exception, you can directly catch this
                                    exception or catch each specific exception below.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 OathToken> T createToken(java.lang.String name, ProvisioningConfiguration configuration) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpNetworkException, IdpException
name - the name of the token
                      configuration - see ProvisioningConfigurationnull if not foundRootPolicyException - when the
                                    OtpConfiguration.TokenRootPolicy
                                    requires this exception to be thrown when the physical device
                                    is rooted.IdpException - this is generic exception, you can directly catch this
                                    exception or catch each specific exception below.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 network opeartion fails.<T extends OathToken> T createToken(java.lang.String name, ProvisioningConfiguration configuration, OathToken.TokenCapability capability) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpNetworkException, IdpException
name - the name of the token
                      configuration - see ProvisioningConfigurationcapability - see OathToken.TokenCapabilitynull if not foundRootPolicyException - when the
                                    OtpConfiguration.TokenRootPolicy
                                    requires this exception to be thrown when the physical device
                                    is rooted.IdpException - this is generic exception, you can directly catch this
                                    exception or catch each specific exception below.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 network operation fails.<T extends OathToken> T createToken(java.lang.String name, ProvisioningConfiguration configuration, DeviceFingerprintTokenPolicy fps) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpNetworkException, IdpException
name - the name of the token
                      configuration - see
                      ProvisioningConfigurationfps - see
                      DeviceFingerprintSourcenull if not foundRootPolicyException - when the
                                    OtpConfiguration.TokenRootPolicy
                                    requires this exception to be thrown when the physical device
                                    is rooted.IdpException - this is generic exception, you can directly catch this
                                    exception or catch each specific exception below.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 network operation fails.<T extends OathToken> T createToken(java.lang.String name, ProvisioningConfiguration configuration, OathToken.TokenCapability capability, DeviceFingerprintTokenPolicy fps) throws IdpStorageException, PasswordManagerException, DeviceFingerprintException, IdpNetworkException, IdpException
name - the name of the token
                      configuration - see
                      ProvisioningConfigurationcapability - see OathToken.TokenCapabilityfps - see
                      DeviceFingerprintSourcenull if not foundRootPolicyException - when the
                                    OtpConfiguration.TokenRootPolicy
                                    requires this exception to be thrown when the physical device
                                    is rooted.IdpException - this is generic exception, you can directly catch this
                                    exception or catch each specific exception below.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 network operation fails.OathToken.TokenCapability getTokenCapability(java.lang.String name) throws IdpException
name - the name of the tokenIdpException - this is generic exception, you can directly catch this
                                    exception or catch some specific exception.IdpStorageException - when database operation failed.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)void createToken(java.lang.String name,
                 ProvisioningConfiguration configuration,
                 DeviceFingerprintTokenPolicy fps,
                 TokenManager.TokenCreationCallback tokenCreationCallback)
name - the name of the token.
                      configuration - the provisioning configuration,
                      see
                      ProvisioningConfigurationfps - the device fingerprint source,
                      see
                      DeviceFingerprintSourcetokenCreationCallback - the callback to be invoked when error occurs or when token creation is completed. It cannot be null.void createToken(java.lang.String name,
                 ProvisioningConfiguration configuration,
                 OathToken.TokenCapability capability,
                 DeviceFingerprintTokenPolicy fps,
                 TokenManager.TokenCreationCallback tokenCreationCallback)
name - the name of the token.
                      configuration - the provisioning configuration,
                      see
                      ProvisioningConfigurationcapability - the token capability,
                      see OathToken.TokenCapabilityfps - the device fingerprint source,
                      see
                      DeviceFingerprintSourcetokenCreationCallback - the callback to be invoked when error occurs or when token creation is completed. It cannot be null.