public static final boolean isValid ( final String value ) { if ( value == null ) { return true ; } if ( ( value . length ( ) < 8 ) || ( value . length ( ) > 20 ) ) { return false ; } return true ; }
Check that a given string is an allowed password .