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 "******".
|
static String |
sanitizeStream(String definition)
Redacts sensitive values in a stream.
|
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.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.