public class ArgumentSanitizer extends Object
Constructor and Description |
---|
ArgumentSanitizer() |
Modifier and Type | Method and Description |
---|---|
String |
sanitize(String argument)
Replaces a potential secure value with "******".
|
String |
sanitize(String key,
String value)
Replaces a potential secure value with "******".
|
List<String> |
sanitizeArguments(List<String> arguments)
For all sensitive arguments (e.g.
|
Map<String,String> |
sanitizeProperties(Map<String,String> properties)
For all sensitive properties (e.g.
|
public String sanitize(String argument)
argument
- the argument to cleanse.public String sanitize(String key, String value)
key
- to check for sensitive words.value
- the argument to cleanse.public Map<String,String> sanitizeProperties(Map<String,String> properties)
properties
- to be sanitizedCopyright © 2022 Pivotal Software, Inc.. All rights reserved.