Package akka.javasdk
Interface SanitizerClient
@DoNotInherit
public interface SanitizerClient
Client for masking text with a configured sanitizer by name.
Can be injected in service setup, endpoints, agents, consumers, timed actions and workflows.
Reaches every configured sanitizer, including the ones a TextSanitizer implements.
Not for user extension, implementation provided by the SDK.
-
Method Summary
Modifier and TypeMethodDescriptionMaskstextwith the sanitizer configured undername, blocking for the result.sanitizeAsync(String name, String text) Async variant ofsanitize(java.lang.String, java.lang.String).
-
Method Details
-
sanitize
Maskstextwith the sanitizer configured undername, blocking for the result.- Throws:
IllegalArgumentException- if no sanitizer is configured with that name
-
sanitizeAsync
Async variant ofsanitize(java.lang.String, java.lang.String). The returned stage fails with anIllegalArgumentExceptionwhen no sanitizer is configured with that name.
-