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.EncrypterThe encrypter to use.protected org.opensaml.saml.security.impl.SAMLMetadataEncryptionParametersResolverThe resolver for encryption parameters.protected IdpMetadataResolverThe metadata resolver.Fields inherited from interface se.idsec.signservice.integration.signmessage.SignMessageProcessor
SIGN_MESSAGE_DIGEST_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures that all required properties have been assigned.se.swedenconnect.schemas.csig.dssext_1_1.SignMessagecreate(se.idsec.signservice.integration.signmessage.SignMessageParameters input, IntegrationServiceConfiguration config) Creates aSignMessageelement and optionally encrypts it for the receipient.voidsetEncrypter(org.opensaml.xmlsec.encryption.support.Encrypter encrypter) The encrypter to use.voidsetIdpMetadataResolver(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 aSignMessageelement and optionally encrypts it for the receipient.- Specified by:
createin 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
Encrypteris 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
-