java.lang.Object
org.springframework.boot.actuate.endpoint.Sanitizer

public class Sanitizer extends Object
Strategy that should be used by endpoint implementations to sanitize potentially sensitive keys.
从以下版本开始:
2.0.0
作者:
Christian Dupuis, Toshiaki Maki, Phillip Webb, Nicolas Lejeune, Stephane Nicoll, HaiTao Zhang, Chris Bono, David Good, Madhura Bhave
  • 构造器详细资料

    • Sanitizer

      public Sanitizer()
      Create a new Sanitizer instance.
    • Sanitizer

      public Sanitizer(Iterable<SanitizingFunction> sanitizingFunctions)
      Create a new Sanitizer instance with sanitizing functions.
      参数:
      sanitizingFunctions - the sanitizing functions to apply
      从以下版本开始:
      2.6.0
  • 方法详细资料

    • sanitize

      public Object sanitize(SanitizableData data, boolean showUnsanitized)
      Sanitize the value from the given SanitizableData using the available SanitizingFunctions.
      参数:
      data - the sanitizable data
      showUnsanitized - whether to show the unsanitized values or not
      返回:
      the potentially updated data
      从以下版本开始:
      3.0.0