public static interface TokenManager.TokenCreationCallback
Modifier and Type | Method and Description |
---|---|
void |
onError(IdpException exception)
This callback function is called, if any exception happen during the token creation.
|
void |
onSuccess(Token token,
java.util.Map<java.lang.String,java.lang.String> tokenExtensions)
This callback function is called when the token created successfully.
|
void onSuccess(Token token, java.util.Map<java.lang.String,java.lang.String> tokenExtensions)
token
- the Token
.tokenExtensions
- contains the collection of the token extensions.void onError(IdpException exception)
exception
- this is generic exception, you can directly catch this exception or catch each specific exception below.IdpStorageException
, when database operation failed.DeviceFingerprintException
, when the fingerprint generated at runtime does not match the expected fingerprint.PasswordManagerException
, when the TOKEN domain is not logged in (using one of the password managers).IdpNetworkException
, when network operation fails.IdpProvisioningException
, only for PPv5 when the server returns error status on response.