Class DefaultSignMessageProcessor
java.lang.Object
se.idsec.signservice.integration.signmessage.impl.DefaultSignMessageProcessor
- All Implemented Interfaces:
SignMessageProcessor
SignMessageProcessor default implementation.
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.opensaml.xmlsec.encryption.support.Encrypter
The encrypter to use.protected org.opensaml.saml.security.impl.SAMLMetadataEncryptionParametersResolver
The resolver for encryption parameters.protected IdpMetadataResolver
The metadata resolver.Fields inherited from interface se.idsec.signservice.integration.signmessage.SignMessageProcessor
SIGN_MESSAGE_DIGEST_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Ensures that all required properties have been assigned.se.swedenconnect.schemas.csig.dssext_1_1.SignMessage
create
(se.idsec.signservice.integration.signmessage.SignMessageParameters input, IntegrationServiceConfiguration config) Creates aSignMessage
element and optionally encrypts it for the receipient.void
setEncrypter
(org.opensaml.xmlsec.encryption.support.Encrypter encrypter) The encrypter to use.void
setIdpMetadataResolver
(IdpMetadataResolver idpMetadataResolver) Assigns the metadata resolver for IdP metadata
-
Field Details
-
idpMetadataResolver
The metadata resolver. -
encryptionParametersResolver
protected org.opensaml.saml.security.impl.SAMLMetadataEncryptionParametersResolver encryptionParametersResolverThe resolver for encryption parameters. -
encrypter
protected org.opensaml.xmlsec.encryption.support.Encrypter encrypterThe 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 aSignMessage
element and optionally encrypts it for the receipient.- Specified by:
create
in interfaceSignMessageProcessor
- Parameters:
input
- the (validated) parametersconfig
- the SignService integration configuration- Returns:
- a SignMessage element
- Throws:
se.idsec.signservice.integration.core.error.SignServiceIntegrationException
- for processing errors
-
setIdpMetadataResolver
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
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
-