ashakirin commented on a change in pull request #681:
URL: https://github.com/apache/cxf/pull/681#discussion_r454142620
##########
File path:
rt/features/logging/src/main/java/org/apache/cxf/ext/logging/AbstractLoggingInterceptor.java
##########
@@ -73,6 +82,15 @@ public long getInMemThreshold() {
return threshold;
}
+ public void addSensitiveElementNames(final List<String>
sensitiveElementNames) {
+ maskSensitiveHelper.addSensitiveElementNames(sensitiveElementNames);
+ }
+
+ public void addSensitiveProtocolHeaderNames(final List<String>
sensitiveProtocolHeaderNames) {
+ sensitiveProtocolHeaderMap = sensitiveProtocolHeaderNames.stream()
+ .collect(Collectors.toMap(Function.identity(), name ->
Boolean.TRUE));
+ }
Review comment:
Yes, set will be enough, you are right
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]