public SecurityLevel evaluatePasswordSecurity(String password) {

        SecurityLevel result;
        if (password.length() < PASSWORD_MIN_LENGTH) {
            result = SecurityLevel.invalid;
        } else if (password.length() < PASSWORD_SECURE_LENGTH) {
            result = SecurityLevel.weak;
        } else {
            result = SecurityLevel.strong;
        }
        return result;
    }
public SecurityLevel evaluatePasswordSecurity ( String password ) { SecurityLevel result ; if ( password . length ( ) < PASSWORD_MIN_LENGTH ) { result = SecurityLevel . invalid ; } else if ( password . length ( ) < PASSWORD_SECURE_LENGTH ) { result = SecurityLevel . weak ; } else { result = SecurityLevel . strong ; } return result ; }
@see org.opencms.security.I_CmsPasswordSecurityEvaluator#evaluatePasswordSecurity(java.lang.String)