public interface BioPasswordPolicy extends PasswordPolicy
ProtectionPolicy.PolicyType| Modifier and Type | Method and Description |
|---|---|
void |
disableBioAuthentication()
Deletes the internally stored password used for external biometric authentication.
|
void |
enableBioAuthentication(char[] password)
Enables authentication with biometrics.
|
void |
enableFingerprintManager(Object authenticationCallback,
Object cancellationSignal)
|
Object |
getAuthenticationCallback()
Android specific.
|
BioAuthenticationState |
getBioAuthenticationState()
Returns the current working state of authentication with biometrics.
|
Object |
getCancellationSignal()
Deprecated.
|
void |
resetBiometricPrompt()
Removes the stored BiometricPrompt and BiometricInfo objects.
|
void |
setBiometricPrompt(android.app.Activity activity,
androidx.biometric.BiometricPrompt.AuthenticationCallback authCallback,
androidx.biometric.BiometricPrompt.PromptInfo promptInfo)
Android specific.
|
void |
setBiometricPrompt(androidx.fragment.app.Fragment fragment,
androidx.biometric.BiometricPrompt.AuthenticationCallback authCallback,
androidx.biometric.BiometricPrompt.PromptInfo promptInfo)
Android specific.
|
changePassword, getCacheTimeout, getCurrentAge, getMaxAge, getMaxAlpha, getMaxHistory, getMaxLength, getMaxLowerCase, getMaxNonAlpha, getMaxNumeric, getMaxUpperCase, getMinAge, getMinAlpha, getMinLength, getMinLowerCase, getMinNonAlpha, getMinNumeric, getMinUpperCase, isCacheEnabled, verifyPasswordgetId, getLockPolicy, getTypevoid enableBioAuthentication(char[] password)
throws UnsupportedDeviceException,
FingerprintNotEnrolledException,
FingerprintAuthenticationRequiredException,
InternalException,
LostCredentialsException,
AuthenticationException,
PasswordExpiredException
password - the password of this policy.UnsupportedDeviceException - if device is not supported by policy.FingerprintNotEnrolledException - if fingerprint enrollment is required.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.InternalException - if an unexpected error occurred.LostCredentialsException - if provisioning key data has been corrupted or lost.AuthenticationException - if password is incorrect.PasswordExpiredException - if expired password is given (changePassword required).BioAuthenticationState getBioAuthenticationState() throws InternalException
InternalException - if an unexpected error occurred.void enableFingerprintManager(Object authenticationCallback, Object cancellationSignal) throws InternalException
setBiometricPrompt(android.app.Activity, androidx.biometric.BiometricPrompt.AuthenticationCallback, androidx.biometric.BiometricPrompt.PromptInfo).authenticationCallback - Instance of FingerprintManager.AuthenticationCallbackcancellationSignal - Instance of android.os.CancellationSignalInternalException - if an unexpected error occurred.Object getAuthenticationCallback() throws InternalException
InternalException - if an unexpected error occurred.Object getCancellationSignal() throws InternalException
InternalException - if an unexpected error occurred.void setBiometricPrompt(android.app.Activity activity,
androidx.biometric.BiometricPrompt.AuthenticationCallback authCallback,
androidx.biometric.BiometricPrompt.PromptInfo promptInfo)
activity - Application activity instanceauthCallback - Instance of BiometricPrompt.AuthenticationCallbackpromptInfo - Instance of dialog structure BiometricPrompt.PromptInfovoid setBiometricPrompt(androidx.fragment.app.Fragment fragment,
androidx.biometric.BiometricPrompt.AuthenticationCallback authCallback,
androidx.biometric.BiometricPrompt.PromptInfo promptInfo)
fragment - Application fragment instanceauthCallback - Instance of BiometricPrompt.AuthenticationCallbackpromptInfo - Instance of dialog structure BiometricPrompt.PromptInfovoid resetBiometricPrompt()
void disableBioAuthentication()
throws UnsupportedDeviceException,
FingerprintNotEnrolledException,
FingerprintAuthenticationRequiredException,
InternalException,
LostCredentialsException,
AuthenticationException,
PasswordExpiredException
UnsupportedDeviceException - if device is not supported by policy.FingerprintNotEnrolledException - if fingerprint enrollment is required.FingerprintAuthenticationRequiredException - if fingerprint authentication is required by policy.InternalException - if an unexpected error occurred.LostCredentialsException - if provisioning key data has been corrupted or lost.AuthenticationException - if password is incorrect.PasswordExpiredException - if expired password is given (changePassword required).Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.