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
Modifier and TypeInterfaceDescriptionstatic enum
Password security levels. -
Method Summary
Modifier and TypeMethodDescriptionevaluatePasswordSecurity
(String password) Evaluates the given password security.getPasswordSecurityHint
(Locale locale) Returns a hint describing how to set a secure password.
-
Method Details
-
evaluatePasswordSecurity
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
Returns a hint describing how to set a secure password.- Parameters:
locale
- the locale- Returns:
- the password security hint
-