public class CmsAdvancedPasswordHandler extends CmsDefaultPasswordHandler
I_CmsPasswordSecurityEvaluator.SecurityLevelPARAM_SCRYPT_FALLBACK, PARAM_SCRYPT_SETTINGS, PASSWORD_MIN_LENGTH, PASSWORD_SECURE_LENGTHCONVERT_DIGEST_ENCODING, DIGEST_TYPE_MD5, DIGEST_TYPE_PLAIN, DIGEST_TYPE_SCRYPT, DIGEST_TYPE_SHA, DIGEST_TYPE_SSHAADD_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, setInputEncodingpublic CmsAdvancedPasswordHandler()
public I_CmsPasswordSecurityEvaluator.SecurityLevel evaluatePasswordSecurity(java.lang.String password)
I_CmsPasswordSecurityEvaluatorevaluatePasswordSecurity in interface I_CmsPasswordSecurityEvaluatorevaluatePasswordSecurity in class CmsDefaultPasswordHandlerpassword - the passwordI_CmsPasswordSecurityEvaluator.evaluatePasswordSecurity(java.lang.String)public java.lang.String getPasswordSecurityHint(java.util.Locale locale)
I_CmsPasswordSecurityEvaluatorgetPasswordSecurityHint in interface I_CmsPasswordSecurityEvaluatorgetPasswordSecurityHint in class CmsDefaultPasswordHandlerlocale - the localeI_CmsPasswordSecurityEvaluator.getPasswordSecurityHint(java.util.Locale)public void validatePassword(java.lang.String password) throws CmsSecurityException
I_CmsPasswordHandlerIf this method throws no exception the password is valid.
validatePassword in interface I_CmsPasswordHandlervalidatePassword in class CmsDefaultPasswordHandlerpassword - the password to checkCmsSecurityException - if validation of the password failedI_CmsPasswordHandler.validatePassword(java.lang.String)