public class CmsAdvancedPasswordHandler extends CmsDefaultPasswordHandler
I_CmsPasswordSecurityEvaluator.SecurityLevel
PARAM_SCRYPT_FALLBACK, PARAM_SCRYPT_SETTINGS, PASSWORD_MIN_LENGTH, PASSWORD_SECURE_LENGTH
CONVERT_DIGEST_ENCODING, DIGEST_TYPE_MD5, DIGEST_TYPE_PLAIN, DIGEST_TYPE_SCRYPT, DIGEST_TYPE_SHA, DIGEST_TYPE_SSHA
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
Constructor and Description |
---|
CmsAdvancedPasswordHandler() |
Modifier and Type | Method and Description |
---|---|
I_CmsPasswordSecurityEvaluator.SecurityLevel |
evaluatePasswordSecurity(java.lang.String password)
Evaluates the given password security.
|
java.lang.String |
getPasswordSecurityHint(java.util.Locale locale)
Returns a hint describing how to set a secure password.
|
void |
validatePassword(java.lang.String password)
This method checks if a new password follows the rules for
new passwords, which are defined by a Class configured in
the opencms.properties file.
|
addConfigurationParameter, checkPassword, digest, digest, getConfiguration, getDigestType, getInputEncoding, getRandomPassword, initConfiguration, setDigestType, setInputEncoding
public CmsAdvancedPasswordHandler()
public I_CmsPasswordSecurityEvaluator.SecurityLevel evaluatePasswordSecurity(java.lang.String password)
I_CmsPasswordSecurityEvaluator
evaluatePasswordSecurity
in interface I_CmsPasswordSecurityEvaluator
evaluatePasswordSecurity
in class CmsDefaultPasswordHandler
password
- the passwordI_CmsPasswordSecurityEvaluator.evaluatePasswordSecurity(java.lang.String)
public java.lang.String getPasswordSecurityHint(java.util.Locale locale)
I_CmsPasswordSecurityEvaluator
getPasswordSecurityHint
in interface I_CmsPasswordSecurityEvaluator
getPasswordSecurityHint
in class CmsDefaultPasswordHandler
locale
- the localeI_CmsPasswordSecurityEvaluator.getPasswordSecurityHint(java.util.Locale)
public void validatePassword(java.lang.String password) throws CmsSecurityException
I_CmsPasswordHandler
If this method throws no exception the password is valid.
validatePassword
in interface I_CmsPasswordHandler
validatePassword
in class CmsDefaultPasswordHandler
password
- the password to checkCmsSecurityException
- if validation of the password failedI_CmsPasswordHandler.validatePassword(java.lang.String)