@Retention(value=RUNTIME) @Target(value={METHOD,FIELD}) public @interface PropertySanitizer
For example, if a Property contains an URL, user names, password, API keys etc, one can supply a or a custom class
implementing the Sanitizer
interface to remove or replace any sensitive data.
The Sanitizer implementation has the option to provide a different value for each level of
Visibility
.
For example, if the raw value is an URL, the PUBLIC
sanitized value may just include the URL path. The
PROTECTED
value may retain the query string, and the PRIVATE
value may retain the scheme and
domain name of the server.
If a Sanitizer returns null
, no value will be available for that visibility.
Modifier and Type | Required Element and Description |
---|---|
java.lang.String |
value |
public abstract java.lang.String value
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.