@Test public void shouldRejectWeakPassword() { assertFalse(TokenPinPolicy.validate(null)); assertFalse(TokenPinPolicy.validate("".toCharArray())); assertFalse(TokenPinPolicy.validate( generatedPassword(TokenPinPolicy.MIN_PASSWORD_LENGTH, LOWERCASE_LETTERS))); }
public static boolean validate(final char[] pin) { return describe(pin).isValid(); }
TokenPinPolicy { public static boolean validate(final char[] pin) { return describe(pin).isValid(); } }
TokenPinPolicy { public static boolean validate(final char[] pin) { return describe(pin).isValid(); } private  TokenPinPolicy(); }
TokenPinPolicy { public static boolean validate(final char[] pin) { return describe(pin).isValid(); } private  TokenPinPolicy(); static boolean validate(final char[] pin); static Description describe(final char[] pin); }
TokenPinPolicy { public static boolean validate(final char[] pin) { return describe(pin).isValid(); } private  TokenPinPolicy(); static boolean validate(final char[] pin); static Description describe(final char[] pin); static final int MIN_PASSWORD_LENGTH; static final int MIN_CHARACTER_CLASS_COUNT; }