public class URISanitizer extends Object implements Sanitizer
Parameters containing sensitive information like user-names, passwords, API-keys etc. can be filtered out by setting
PARAMETER_FILTER_PROPERTY System property to a comma separated
list of names that should never show up in the
DocumentService. Some systems may use
non-standard URIs, which cannot be parsed by
If the sanitizer encounters one of those URIs it
will catch the Exception and return an empty String. This can be overruled by setting the
FAILURE_MODE_PASS_THROUGH System property to
which will cause the actual value being returned. Note that this might leak sensitive information to the
|Modifier and Type||Field and Description|
System property to allow values to pass through a parse exception.
System property for listing URI parameters to be filtered out (usernames, passwords etc.) Value cases are ignored, thus
|Constructor and Description|
|Modifier and Type||Method and Description|
Applies the custom sanitization to the given value for the given visibility.
public static final String PARAMETER_FILTER_PROPERTY
UserNamewill be equivalent to
public String apply(Visibility visibility, Object value)
Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.