Class Xs2aHttpLogSanitizer
- java.lang.Object
-
- de.adorsys.xs2a.adapter.impl.http.Xs2aHttpLogSanitizer
-
- All Implemented Interfaces:
HttpLogSanitizer
public class Xs2aHttpLogSanitizer extends Object implements HttpLogSanitizer
-
-
Constructor Summary
Constructors Constructor Description Xs2aHttpLogSanitizer()Xs2aHttpLogSanitizer(List<String> whitelist)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringsanitize(String data)StringsanitizeHeader(String name, String value)StringsanitizeRequestBody(Object httpEntity, String contentType)StringsanitizeResponseBody(Object responseBody, String contentType)
-
-
-
Constructor Detail
-
Xs2aHttpLogSanitizer
public Xs2aHttpLogSanitizer(List<String> whitelist)
- Parameters:
whitelist- is a list of request/response body fields that a client wants to be unveiled in logs. Empty list may be passed. Field names must conform Berlin Group specification and written in camelCase, otherwise it will have no effect and Xs2aHttpLogSanitizer will still mask values.
-
Xs2aHttpLogSanitizer
public Xs2aHttpLogSanitizer()
-
-
Method Detail
-
sanitizeHeader
public String sanitizeHeader(String name, String value)
- Specified by:
sanitizeHeaderin interfaceHttpLogSanitizer
-
sanitize
public String sanitize(String data)
- Specified by:
sanitizein interfaceHttpLogSanitizer
-
sanitizeRequestBody
public String sanitizeRequestBody(Object httpEntity, String contentType)
- Specified by:
sanitizeRequestBodyin interfaceHttpLogSanitizer
-
sanitizeResponseBody
public String sanitizeResponseBody(Object responseBody, String contentType)
- Specified by:
sanitizeResponseBodyin interfaceHttpLogSanitizer
-
-