Class DefaultSignMessageProcessor

java.lang.Object
se.idsec.signservice.integration.signmessage.impl.DefaultSignMessageProcessor
All Implemented Interfaces:
SignMessageProcessor

public class DefaultSignMessageProcessor extends Object implements SignMessageProcessor
SignMessageProcessor default implementation.
Author:
Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
  • Field Details

    • idpMetadataResolver

      protected IdpMetadataResolver idpMetadataResolver
      The metadata resolver.
    • encryptionParametersResolver

      protected org.opensaml.saml.security.impl.SAMLMetadataEncryptionParametersResolver encryptionParametersResolver
      The resolver for encryption parameters.
    • encrypter

      protected org.opensaml.xmlsec.encryption.support.Encrypter encrypter
      The encrypter to use.
  • Constructor Details

    • DefaultSignMessageProcessor

      public DefaultSignMessageProcessor()
      Constructor.
  • Method Details

    • create

      public se.swedenconnect.schemas.csig.dssext_1_1.SignMessage create(@Nonnull se.idsec.signservice.integration.signmessage.SignMessageParameters input, @Nonnull IntegrationServiceConfiguration config) throws se.idsec.signservice.integration.core.error.SignServiceIntegrationException
      Creates a SignMessage element and optionally encrypts it for the receipient.
      Specified by:
      create in interface SignMessageProcessor
      Parameters:
      input - the (validated) parameters
      config - the SignService integration configuration
      Returns:
      a SignMessage element
      Throws:
      se.idsec.signservice.integration.core.error.SignServiceIntegrationException - for processing errors
    • setIdpMetadataResolver

      public void setIdpMetadataResolver(IdpMetadataResolver idpMetadataResolver)
      Assigns the metadata resolver for IdP metadata
      Parameters:
      idpMetadataResolver - metadata resolver
    • setEncrypter

      public void setEncrypter(org.opensaml.xmlsec.encryption.support.Encrypter encrypter)
      The encrypter to use.

      If not assigned, an instance of Encrypter is used.

      Parameters:
      encrypter - the encrypter
    • afterPropertiesSet

      @PostConstruct public void afterPropertiesSet() throws Exception
      Ensures that all required properties have been assigned.

      Note: If executing in a Spring Framework environment this method is automatically invoked after all properties have been assigned. Otherwise it should be explicitly invoked.

      Throws:
      Exception - if not all settings are correct