Package org.pac4j.saml.sso.artifact
Class DefaultSOAPPipelineFactory
java.lang.Object
org.pac4j.saml.sso.artifact.DefaultSOAPPipelineFactory
- All Implemented Interfaces:
org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactory
public class DefaultSOAPPipelineFactory
extends Object
implements org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactory
A default implementation of the pipeline factory, which enforces the rules
set by the web SSO profile. To add additional handlers, you can override
getInboundHandlers()
, getOutboundPayloadHandlers()
and/or
getOutboundTransportHandlers()
. To modify the configuration of a
specific handler, override the build method for that handler.- Since:
- 3.8.0
- Author:
- bidou
-
Field Summary
Modifier and TypeFieldDescriptionprotected final SAML2Configuration
protected final SAML2MetadataResolver
protected final ReplayCacheProvider
protected final SAML2SignatureTrustEngineProvider
protected final SignatureSigningParametersProvider
protected final SAML2MetadataResolver
-
Constructor Summary
ConstructorDescriptionDefaultSOAPPipelineFactory
(SAML2Configuration configuration, SAML2MetadataResolver idpMetadataResolver, SAML2MetadataResolver spMetadataResolver, SignatureSigningParametersProvider signingParametersProvider, SAML2SignatureTrustEngineProvider signatureTrustEngineProvider, ReplayCacheProvider replayCache) Constructor for DefaultSOAPPipelineFactory. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opensaml.messaging.handler.MessageHandler
buildCheckAndRecordServerTLSEntityAuthenticationtHandler.protected org.opensaml.messaging.handler.MessageHandler
buildCheckExpectedIssuer.protected org.opensaml.messaging.handler.MessageHandler
buildCheckMandatoryAuthentication.protected org.opensaml.messaging.handler.MessageHandler
buildCheckMandatoryIssuer.protected org.opensaml.messaging.handler.MessageHandler
buildCheckMessageVersionHandler.protected org.opensaml.messaging.handler.MessageHandler
buildInResponseToSecurityHandler.protected org.opensaml.messaging.handler.MessageHandler
buildMessageLifetimeSecurityHandler.protected org.opensaml.messaging.handler.MessageHandler
buildMessageReplaySecurityHandler.protected org.opensaml.messaging.handler.MessageHandler
buildPopulateSignatureSigningParametersHandler.protected org.opensaml.messaging.handler.MessageHandler
buildPopulateSignatureValidationParametersHandler.protected org.opensaml.messaging.handler.MessageHandler
buildSAMLMetadataLookupHandler
(SAML2MetadataResolver metadataResolver) buildSAMLMetadataLookupHandler.protected org.opensaml.messaging.handler.MessageHandler
buildSAMLOutboundProtocolMessageSigningHandler.protected org.opensaml.messaging.handler.MessageHandler
buildSAMLProtocolAndRoleHandler
(QName roleName) buildSAMLProtocolAndRoleHandler.protected org.opensaml.messaging.handler.MessageHandler
buildSAMLProtocolMessageXMLSignatureSecurityHandler.protected org.opensaml.messaging.handler.MessageHandler
buildSAMLSOAPDecoderBodyHandler.protected org.opensaml.messaging.handler.MessageHandler
buildSchemaValidateXMLMessage.protected List<org.opensaml.messaging.handler.MessageHandler>
getInboundHandlers.protected List<org.opensaml.messaging.handler.MessageHandler>
getOutboundPayloadHandlers.protected List<org.opensaml.messaging.handler.MessageHandler>
getOutboundTransportHandlers.org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipeline
org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipeline
newInstance
(String pipelineName) protected org.opensaml.messaging.handler.impl.BasicMessageHandlerChain
toHandlerChain
(List<org.opensaml.messaging.handler.MessageHandler> handlers) toHandlerChain.
-
Field Details
-
configuration
-
idpMetadataResolver
-
spMetadataResolver
-
signingParametersProvider
-
signatureTrustEngineProvider
-
replayCache
-
-
Constructor Details
-
DefaultSOAPPipelineFactory
public DefaultSOAPPipelineFactory(SAML2Configuration configuration, SAML2MetadataResolver idpMetadataResolver, SAML2MetadataResolver spMetadataResolver, SignatureSigningParametersProvider signingParametersProvider, SAML2SignatureTrustEngineProvider signatureTrustEngineProvider, ReplayCacheProvider replayCache) Constructor for DefaultSOAPPipelineFactory.
- Parameters:
configuration
- aSAML2Configuration
objectidpMetadataResolver
- aSAML2MetadataResolver
objectspMetadataResolver
- aSAML2MetadataResolver
objectsigningParametersProvider
- aSignatureSigningParametersProvider
objectsignatureTrustEngineProvider
- aSAML2SignatureTrustEngineProvider
objectreplayCache
- aReplayCacheProvider
object
-
-
Method Details
-
getInboundHandlers
protected List<org.opensaml.messaging.handler.MessageHandler> getInboundHandlers() throws net.shibboleth.shared.component.ComponentInitializationExceptiongetInboundHandlers.
- Returns:
- a
List
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
getOutboundPayloadHandlers
protected List<org.opensaml.messaging.handler.MessageHandler> getOutboundPayloadHandlers() throws net.shibboleth.shared.component.ComponentInitializationExceptiongetOutboundPayloadHandlers.
- Returns:
- a
List
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
getOutboundTransportHandlers
protected List<org.opensaml.messaging.handler.MessageHandler> getOutboundTransportHandlers() throws net.shibboleth.shared.component.ComponentInitializationExceptiongetOutboundTransportHandlers.
- Returns:
- a
List
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildSAMLProtocolAndRoleHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLProtocolAndRoleHandler(QName roleName) throws net.shibboleth.shared.component.ComponentInitializationException buildSAMLProtocolAndRoleHandler.
- Parameters:
roleName
- aQName
object- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildSAMLMetadataLookupHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLMetadataLookupHandler(SAML2MetadataResolver metadataResolver) throws net.shibboleth.shared.component.ComponentInitializationException buildSAMLMetadataLookupHandler.
- Parameters:
metadataResolver
- aSAML2MetadataResolver
object- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildSchemaValidateXMLMessage
protected org.opensaml.messaging.handler.MessageHandler buildSchemaValidateXMLMessage() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildSchemaValidateXMLMessage.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildCheckMessageVersionHandler
protected org.opensaml.messaging.handler.MessageHandler buildCheckMessageVersionHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildCheckMessageVersionHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildMessageLifetimeSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildMessageLifetimeSecurityHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildMessageLifetimeSecurityHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildInResponseToSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildInResponseToSecurityHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildInResponseToSecurityHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildMessageReplaySecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildMessageReplaySecurityHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildMessageReplaySecurityHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildCheckMandatoryIssuer
protected org.opensaml.messaging.handler.MessageHandler buildCheckMandatoryIssuer() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildCheckMandatoryIssuer.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildCheckExpectedIssuer
protected org.opensaml.messaging.handler.MessageHandler buildCheckExpectedIssuer() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildCheckExpectedIssuer.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildPopulateSignatureSigningParametersHandler
protected org.opensaml.messaging.handler.MessageHandler buildPopulateSignatureSigningParametersHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildPopulateSignatureSigningParametersHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildPopulateSignatureValidationParametersHandler
protected org.opensaml.messaging.handler.MessageHandler buildPopulateSignatureValidationParametersHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildPopulateSignatureValidationParametersHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildSAMLProtocolMessageXMLSignatureSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLProtocolMessageXMLSignatureSecurityHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildSAMLProtocolMessageXMLSignatureSecurityHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildCheckAndRecordServerTLSEntityAuthenticationtHandler
protected org.opensaml.messaging.handler.MessageHandler buildCheckAndRecordServerTLSEntityAuthenticationtHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildCheckAndRecordServerTLSEntityAuthenticationtHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildCheckMandatoryAuthentication
protected org.opensaml.messaging.handler.MessageHandler buildCheckMandatoryAuthentication()buildCheckMandatoryAuthentication.
- Returns:
- a
MessageHandler
object
-
buildSAMLSOAPDecoderBodyHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLSOAPDecoderBodyHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildSAMLSOAPDecoderBodyHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
buildSAMLOutboundProtocolMessageSigningHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLOutboundProtocolMessageSigningHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildSAMLOutboundProtocolMessageSigningHandler.
- Returns:
- a
MessageHandler
object - Throws:
net.shibboleth.shared.component.ComponentInitializationException
- if any.
-
toHandlerChain
protected org.opensaml.messaging.handler.impl.BasicMessageHandlerChain toHandlerChain(List<org.opensaml.messaging.handler.MessageHandler> handlers) toHandlerChain.
- Parameters:
handlers
- aList
object- Returns:
- a
BasicMessageHandlerChain
object
-
newInstance
public org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipeline newInstance()- Specified by:
newInstance
in interfaceorg.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactory
-
newInstance
public org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipeline newInstance(String pipelineName) - Specified by:
newInstance
in interfaceorg.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactory
-