Interface SignatureMessagePreprocessor


public interface SignatureMessagePreprocessor
An interface that defines pre-processing of signature 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

    Modifier and Type
    Method
    Description
    processSignMessage(String encodedMessage, se.swedenconnect.opensaml.sweid.saml2.signservice.dss.SignMessageMimeTypeEnum messageType)
    Applies processing of the supplied message where filtering, validation and transformation to the service's desired display format can be done.
  • Method Details

    • processSignMessage

      String processSignMessage(String encodedMessage, se.swedenconnect.opensaml.sweid.saml2.signservice.dss.SignMessageMimeTypeEnum messageType) throws Saml2ErrorStatusException
      Applies processing of the supplied message where filtering, validation and transformation to the service's desired display format can be done.
      Parameters:
      encodedMessage - the cleartext sign message (in Base64 encoding)
      messageType - the mime type
      Returns:
      the filtered (and transformed) message
      Throws:
      Saml2ErrorStatusException - for invalid input