Interface UserMessagePreprocessor
public interface UserMessagePreprocessor
An interface that defines pre-processing of user messages before they are displayed.
Typically an implementation will filter the input to avoid unwanted characters and to protect from XSS attacks and such, and then translate the message into the format that is suitable for the service's UI.
- Author:
- Martin Lindström
-
Method Summary
-
Method Details
-
processUserMessage
@NonNull Map<String,String> processUserMessage(@NonNull Map<String, String> encodedMessages, @NonNull MimeType mimeType) throws Saml2ErrorStatusExceptionApplies processing of the supplied message where filtering, validation and transformation to the service's desired display format can be done.- Parameters:
encodedMessages
- the user messages (in Base64 encoding) where the key holds the language tagmimeType
- the mime type- Returns:
- the filtered (and transformed) messages
- Throws:
Saml2ErrorStatusException
- for invalid input
-