Class SanitizationUtils

java.lang.Object
io.github.rabinarayanpatra.sanitizer.core.SanitizationUtils

public final class SanitizationUtils extends Object
Utility class that applies FieldSanitizer logic to bean fields annotated with Sanitize.
Since:
1.0.0
  • Method Details

    • apply

      public static void apply(@Nullable Object bean)
      Applies all configured sanitizers to the fields of the given bean that are annotated with Sanitize.
      Parameters:
      bean - the object whose fields should be sanitized