public Object sanitize ( String key , Object value ) { if ( value == null ) { return null ; } for ( Pattern pattern : this . keysToSanitize ) { if ( pattern . matcher ( key ) . matches ( ) ) { return "******" ; } } return value ; }
Sanitize the given value if necessary .