Class AttributeMaskingHelper

java.lang.Object
org.apache.cxf.ext.logging.MaskSensitiveHelper
org.apache.cxf.ext.logging.AttributeMaskingHelper

public class AttributeMaskingHelper extends MaskSensitiveHelper
Adds XML/HTML attribute value masking on top of the parent MaskSensitiveHelper.
  • Constructor Details

    • AttributeMaskingHelper

      public AttributeMaskingHelper()
  • Method Details

    • addSensitiveAttributeNames

      public void addSensitiveAttributeNames(Set<String> inSensitiveAttirbuteNames)
      Adds attribute names to be masked in XML/HTML logs (values replaced with "XXX").
    • setSensitiveAttributeNames

      public void setSensitiveAttributeNames(Set<String> inSensitiveAttributeNames)
      Optional convenience resetter if you want it.
    • maskSensitiveElements

      public String maskSensitiveElements(org.apache.cxf.message.Message message, String originalLogString)
      Overrides:
      maskSensitiveElements in class MaskSensitiveHelper