Annotation Type PropertySanitizer

public @interface PropertySanitizer

PropertySanitizer is an annotation to be used in conjunction with a Property annotation to sanitize values containing sensitive information.

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.

Required Element Summary
 String value

Element Detail


public abstract String value

Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.