public static boolean isSensitive ( String key ) { Preconditions . checkNotNull ( key , "key is null" ) ; final String keyInLower = key . toLowerCase ( ) ; for ( String hideKey : SENSITIVE_KEYS ) { if ( keyInLower . length ( ) >= hideKey . length ( ) && keyInLower . contains ( hideKey ) ) { return true ; } } return false ; }
Check whether the key is a hidden key .