Interface PasswordMasker

All Known Implementing Classes:
JsonPasswordMasker, UriQueryStringPasswordMasker, XmlAttributePasswordMasker

public interface PasswordMasker
Class that tries to mask a password in a string.

The implementation tries to mask a field for a specific format, for instance JSON or XML.

Since:
2.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Check if the builder matches the pattern could be masked.
  • Method Details

    • matches

      boolean matches(MaskedPasswordBuilder builder)
      Check if the builder matches the pattern could be masked.
      Parameters:
      builder - a "string builder" that builds a string without the password fields.
      Returns:
      whether some masking has been done.