TestProxySanitizer Class
- java.
lang. Object - com.
azure. core. test. models. TestProxySanitizer
- com.
public class TestProxySanitizer
Keeps track of different sanitizers that redact the sensitive information when recording
Constructor Summary
Constructor | Description |
---|---|
TestProxySanitizer(String regex, String redactedValue, TestProxySanitizerType testProxySanitizerType) |
Creates an instance of Test |
TestProxySanitizer(String key, String regex, String redactedValue, TestProxySanitizerType testProxySanitizerType) |
Creates an instance of Test |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getGroupForReplace()
Get the group for replace |
String |
getKey()
Get the header or body json key that is being redacted. |
String |
getRedactedValue()
Get the replacement for regex matched content |
String |
getRegex()
Get the regex to apply for redaction |
Test |
getType()
Get the type of proxy sanitizer |
Test |
setGroupForReplace(String groupForReplace)
Set the group for replace. |
Methods inherited from java.lang.Object
Constructor Details
TestProxySanitizer
public TestProxySanitizer(String regex, String redactedValue, TestProxySanitizerType testProxySanitizerType)
Creates an instance of TestProxySanitizer with regex
Parameters:
TestProxySanitizer
public TestProxySanitizer(String key, String regex, String redactedValue, TestProxySanitizerType testProxySanitizerType)
Creates an instance of TestProxySanitizer for a key with specified regex pattern
Parameters:
Method Details
getGroupForReplace
public String getGroupForReplace()
Get the group for replace
Returns:
getKey
public String getKey()
Get the header or body json key that is being redacted.
Returns:
getRedactedValue
public String getRedactedValue()
Get the replacement for regex matched content
Returns:
getRegex
public String getRegex()
Get the regex to apply for redaction
Returns:
getType
public TestProxySanitizerType getType()
Get the type of proxy sanitizer
Returns:
setGroupForReplace
public TestProxySanitizer setGroupForReplace(String groupForReplace)
Set the group for replace.
Parameters:
Returns: