public interface Authenticatable
Modifier and Type | Method and Description |
---|---|
void |
activateAuthMode(AuthMode mode,
AuthInput authInput)
Activate an authentication mode for the authenticatable.
|
void |
deactivateAuthMode(AuthMode authMode)
Deactivate an authentication mode.
|
java.util.Set<AuthMode> |
getActivatedModes()
Get the list of authentication modes that have been activated for this
authenticatable.
|
java.lang.String |
getUUID()
Get the UUID of an Authenticatable object.
|
boolean |
isAuthModeActive(AuthMode mode)
Check if a mode has already been activated for this authenticatable.
|
boolean |
isMultiAuthModeEnabled()
Check if multi authentication mode has been enabled.
|
java.lang.String getUUID() throws IdpException
IdpException
- this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException
- when database doesn't existPasswordManagerException
- when the functionality is protected by passwordManager but is
not logged inDeviceFingerprintException
- when a device fingerprint operation failed.void activateAuthMode(AuthMode mode, AuthInput authInput) throws IdpException
mode
- new mode of authentication to be activated.authInput
- input used for activation.IdpException
- this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException
- when database doesn't existPasswordManagerException
- when the functionality is protected by passwordManager but is
not logged inDeviceFingerprintException
- when a device fingerprint operation failed.IdpAuthException
- when the authentication mode operation failed.java.lang.IllegalStateException
- if token is failsafe or token has already been migrated.boolean isMultiAuthModeEnabled() throws IdpException
IdpException
- this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException
- when database doesn't existPasswordManagerException
- when the functionality is protected by passwordManager but is
not logged inDeviceFingerprintException
- when a device fingerprint operation failed.void deactivateAuthMode(AuthMode authMode) throws IdpException
authMode
- the mode to be deactivated.IdpException
- this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException
- when database doesn't existPasswordManagerException
- when the functionality is protected by passwordManager but is
not logged inDeviceFingerprintException
- when a device fingerprint operation failed.IdpAuthException
- when the authentication mode operation failed.java.util.Set<AuthMode> getActivatedModes() throws IdpException
IdpException
- this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException
- when database doesn't existPasswordManagerException
- when the functionality is protected by passwordManager but is
not logged inDeviceFingerprintException
- when a device fingerprint operation failed.boolean isAuthModeActive(AuthMode mode) throws IdpException
mode
- the authentication mode to be check.IdpException
- this is generic exception, you can directly catch this
exception or catch each specific exception below.IdpStorageException
- when database doesn't existPasswordManagerException
- when the functionality is protected by passwordManager but is
not logged inDeviceFingerprintException
- when a device fingerprint operation failed.