Package org.opencms.security
Interface I_CmsPasswordSecurityEvaluator
-
- All Known Implementing Classes:
CmsAdvancedPasswordHandler
,CmsDefaultPasswordHandler
public interface I_CmsPasswordSecurityEvaluator
Password handler implementing this interface allow the password security to be evaluated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
I_CmsPasswordSecurityEvaluator.SecurityLevel
Password security levels.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
evaluatePasswordSecurity
I_CmsPasswordSecurityEvaluator.SecurityLevel evaluatePasswordSecurity(java.lang.String password)
Evaluates the given password security.- Parameters:
password
- the password- Returns:
- the security level as a number between 0 and 1, 0 meaning a low security and 1 a strong security
-
getPasswordSecurityHint
java.lang.String getPasswordSecurityHint(java.util.Locale locale)
Returns a hint describing how to set a secure password.- Parameters:
locale
- the locale- Returns:
- the password security hint
-
-