public interface PasswordPolicy extends ProtectionPolicy
ProtectionPolicy.PolicyType
Modifier and Type | Method and Description |
---|---|
boolean |
changePassword(char[] oldpwdvalue,
char[] newpwdvalue)
Changes the password bound to the protection policy identified by the protection policyId parameter.
|
int |
getCacheTimeout()
Returns timeout of cached memory in seconds
|
long |
getCurrentAge()
Current password age since last change.
|
int |
getMaxAge()
Returns the maximum age for a password.
|
int |
getMaxAlpha()
Get maximum number of letter characters
|
int |
getMaxHistory()
"Returns the max password history limit.
|
int |
getMaxLength()
Get maximum password length
|
int |
getMaxLowerCase()
Get maximum number of lowercase letters
|
int |
getMaxNonAlpha()
Get maximum number of special characters (non alphanumeric)
|
int |
getMaxNumeric()
Get maximum number of numeric characters
|
int |
getMaxUpperCase()
Get maximum number of uppercase letters
|
int |
getMinAge()
Get minimum age for password.
|
int |
getMinAlpha()
Get minimum number of letter characters
|
int |
getMinLength()
Get minimum password length
|
int |
getMinLowerCase()
Get minimum number of lowercase letters
|
int |
getMinNonAlpha()
Get minimum number of special characters (non alphanumeric)
|
int |
getMinNumeric()
Get minimum number of numeric characters
|
int |
getMinUpperCase()
Get minimum number of uppercase letters
|
boolean |
isCacheEnabled()
Returns true if password cache is enabled
|
void |
verifyPassword(char[] password)
Verifies whether password protecting the key is correct (RSA keys ONLY).
|
getId, getLockPolicy, getType
int getMinLength()
int getMaxLength()
int getMinUpperCase()
int getMinLowerCase()
int getMinNumeric()
int getMinAlpha()
int getMinNonAlpha()
int getMaxUpperCase()
int getMaxLowerCase()
int getMaxNumeric()
int getMaxAlpha()
int getMaxNonAlpha()
int getMaxHistory()
int getMaxAge()
int getMinAge()
long getCurrentAge()
boolean isCacheEnabled()
int getCacheTimeout()
void verifyPassword(char[] password) throws InternalException, UnsupportedDeviceException, LostCredentialsException, AuthenticationException, PasswordExpiredException, FingerprintAuthenticationRequiredException, FingerprintNotEnrolledException, PasswordRequiredException
password
- the key password.InternalException
- if an unexpected error occurred.UnsupportedDeviceException
- if device is not supported by policy.LostCredentialsException
- if provisioning key data has been corrupted or lost.AuthenticationException
- if password is incorrect.PasswordExpiredException
- if expired password is given (changePassword required).FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.PasswordRequiredException
- if required password was not provided and cached password is not available.boolean changePassword(char[] oldpwdvalue, char[] newpwdvalue) throws AuthenticationException, PasswordNotYetUpdatableException, InvalidPasswordException, LostCredentialsException, InternalException, FingerprintAuthenticationRequiredException, UnsupportedDeviceException, FingerprintNotEnrolledException, PasswordRequiredException
oldpwdvalue
- old key password.newpwdvalue
- new key password.AuthenticationException
- if password is incorrect.PasswordNotYetUpdatableException
- if the policy indicates that it is too early to update the password.InvalidPasswordException
- if password validation fails.LostCredentialsException
- if provisioning key data has been corrupted or lost.InternalException
- if an unexpected error occurred.FingerprintAuthenticationRequiredException
- if fingerprint authentication is required by policy.FingerprintNotEnrolledException
- if fingerprint enrollment is required.UnsupportedDeviceException
- if device is not supported by policy.PasswordRequiredException
- if required password was not provided and cached password is not available.Copyright © 2005-2020 HID Global Corporation/ASSA ABLOY AB.