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
FieldsModifier and TypeFieldDescriptionprotected final SAML2Configurationprotected final SAML2MetadataResolverprotected final ReplayCacheProviderprotected final SAML2SignatureTrustEngineProviderprotected final SignatureSigningParametersProviderprotected final SAML2MetadataResolver -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSOAPPipelineFactory(SAML2Configuration configuration, SAML2MetadataResolver idpMetadataResolver, SAML2MetadataResolver spMetadataResolver, SignatureSigningParametersProvider signingParametersProvider, SAML2SignatureTrustEngineProvider signatureTrustEngineProvider, ReplayCacheProvider replayCache) Constructor for DefaultSOAPPipelineFactory. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opensaml.messaging.handler.MessageHandlerbuildCheckAndRecordServerTLSEntityAuthenticationtHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildCheckExpectedIssuer.protected org.opensaml.messaging.handler.MessageHandlerbuildCheckMandatoryAuthentication.protected org.opensaml.messaging.handler.MessageHandlerbuildCheckMandatoryIssuer.protected org.opensaml.messaging.handler.MessageHandlerbuildCheckMessageVersionHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildInResponseToSecurityHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildMessageLifetimeSecurityHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildMessageReplaySecurityHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildPopulateSignatureSigningParametersHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildPopulateSignatureValidationParametersHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLMetadataLookupHandler(SAML2MetadataResolver metadataResolver) buildSAMLMetadataLookupHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLOutboundProtocolMessageSigningHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLProtocolAndRoleHandler(QName roleName) buildSAMLProtocolAndRoleHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLProtocolMessageXMLSignatureSecurityHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLSOAPDecoderBodyHandler.protected org.opensaml.messaging.handler.MessageHandlerbuildSchemaValidateXMLMessage.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.HttpClientMessagePipelineorg.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelinenewInstance(String pipelineName) protected org.opensaml.messaging.handler.impl.BasicMessageHandlerChaintoHandlerChain(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- aSAML2ConfigurationobjectidpMetadataResolver- aSAML2MetadataResolverobjectspMetadataResolver- aSAML2MetadataResolverobjectsigningParametersProvider- aSignatureSigningParametersProviderobjectsignatureTrustEngineProvider- aSAML2SignatureTrustEngineProviderobjectreplayCache- aReplayCacheProviderobject
-
-
Method Details
-
getInboundHandlers
protected List<org.opensaml.messaging.handler.MessageHandler> getInboundHandlers() throws net.shibboleth.shared.component.ComponentInitializationExceptiongetInboundHandlers.
- Returns:
- a
Listobject - 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
Listobject - 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
Listobject - 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- aQNameobject- Returns:
- a
MessageHandlerobject - 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- aSAML2MetadataResolverobject- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildSchemaValidateXMLMessage
protected org.opensaml.messaging.handler.MessageHandler buildSchemaValidateXMLMessage() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildSchemaValidateXMLMessage.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildCheckMessageVersionHandler
protected org.opensaml.messaging.handler.MessageHandler buildCheckMessageVersionHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildCheckMessageVersionHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildMessageLifetimeSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildMessageLifetimeSecurityHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildMessageLifetimeSecurityHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildInResponseToSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildInResponseToSecurityHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildInResponseToSecurityHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildMessageReplaySecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildMessageReplaySecurityHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildMessageReplaySecurityHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildCheckMandatoryIssuer
protected org.opensaml.messaging.handler.MessageHandler buildCheckMandatoryIssuer() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildCheckMandatoryIssuer.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildCheckExpectedIssuer
protected org.opensaml.messaging.handler.MessageHandler buildCheckExpectedIssuer() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildCheckExpectedIssuer.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildPopulateSignatureSigningParametersHandler
protected org.opensaml.messaging.handler.MessageHandler buildPopulateSignatureSigningParametersHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildPopulateSignatureSigningParametersHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildPopulateSignatureValidationParametersHandler
protected org.opensaml.messaging.handler.MessageHandler buildPopulateSignatureValidationParametersHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildPopulateSignatureValidationParametersHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildSAMLProtocolMessageXMLSignatureSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLProtocolMessageXMLSignatureSecurityHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildSAMLProtocolMessageXMLSignatureSecurityHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildCheckAndRecordServerTLSEntityAuthenticationtHandler
protected org.opensaml.messaging.handler.MessageHandler buildCheckAndRecordServerTLSEntityAuthenticationtHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildCheckAndRecordServerTLSEntityAuthenticationtHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildCheckMandatoryAuthentication
protected org.opensaml.messaging.handler.MessageHandler buildCheckMandatoryAuthentication()buildCheckMandatoryAuthentication.
- Returns:
- a
MessageHandlerobject
-
buildSAMLSOAPDecoderBodyHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLSOAPDecoderBodyHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildSAMLSOAPDecoderBodyHandler.
- Returns:
- a
MessageHandlerobject - Throws:
net.shibboleth.shared.component.ComponentInitializationException- if any.
-
buildSAMLOutboundProtocolMessageSigningHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLOutboundProtocolMessageSigningHandler() throws net.shibboleth.shared.component.ComponentInitializationExceptionbuildSAMLOutboundProtocolMessageSigningHandler.
- Returns:
- a
MessageHandlerobject - 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- aListobject- Returns:
- a
BasicMessageHandlerChainobject
-
newInstance
public org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipeline newInstance()- Specified by:
newInstancein interfaceorg.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactory
-
newInstance
public org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipeline newInstance(String pipelineName) - Specified by:
newInstancein interfaceorg.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactory
-