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 java.lang.Object implements org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactoryA default implementation of the pipeline factory, which enforces the rules set by the web SSO profile. To add additional handlers, you can overridegetInboundHandlers(),getOutboundPayloadHandlers()and/orgetOutboundTransportHandlers(). To modify the configuration of a specific handler, override the build method for that handler.- Since:
- 3.8.0
-
-
Field Summary
Fields Modifier and Type Field Description protected SAML2Configurationconfigurationprotected SAML2MetadataResolveridpMetadataResolverprotected ReplayCacheProviderreplayCacheprotected SAML2SignatureTrustEngineProvidersignatureTrustEngineProviderprotected SignatureSigningParametersProvidersigningParametersProviderprotected SAML2MetadataResolverspMetadataResolver
-
Constructor Summary
Constructors Constructor Description DefaultSOAPPipelineFactory(SAML2Configuration configuration, SAML2MetadataResolver idpMetadataResolver, SAML2MetadataResolver spMetadataResolver, SignatureSigningParametersProvider signingParametersProvider, SAML2SignatureTrustEngineProvider signatureTrustEngineProvider, ReplayCacheProvider replayCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLOutboundProtocolMessageSigningHandler()protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLProtocolAndRoleHandler(javax.xml.namespace.QName roleName)protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLProtocolMessageXMLSignatureSecurityHandler()protected org.opensaml.messaging.handler.MessageHandlerbuildSAMLSOAPDecoderBodyHandler()protected org.opensaml.messaging.handler.MessageHandlerbuildSchemaValidateXMLMessage()protected java.util.List<org.opensaml.messaging.handler.MessageHandler>getInboundHandlers()protected java.util.List<org.opensaml.messaging.handler.MessageHandler>getOutboundPayloadHandlers()protected java.util.List<org.opensaml.messaging.handler.MessageHandler>getOutboundTransportHandlers()org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelinenewInstance()org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelinenewInstance(java.lang.String pipelineName)protected org.opensaml.messaging.handler.impl.BasicMessageHandlerChaintoHandlerChain(java.util.List<org.opensaml.messaging.handler.MessageHandler> handlers)
-
-
-
Field Detail
-
configuration
protected final SAML2Configuration configuration
-
idpMetadataResolver
protected final SAML2MetadataResolver idpMetadataResolver
-
spMetadataResolver
protected final SAML2MetadataResolver spMetadataResolver
-
signingParametersProvider
protected final SignatureSigningParametersProvider signingParametersProvider
-
signatureTrustEngineProvider
protected final SAML2SignatureTrustEngineProvider signatureTrustEngineProvider
-
replayCache
protected final ReplayCacheProvider replayCache
-
-
Constructor Detail
-
DefaultSOAPPipelineFactory
public DefaultSOAPPipelineFactory(SAML2Configuration configuration, SAML2MetadataResolver idpMetadataResolver, SAML2MetadataResolver spMetadataResolver, SignatureSigningParametersProvider signingParametersProvider, SAML2SignatureTrustEngineProvider signatureTrustEngineProvider, ReplayCacheProvider replayCache)
-
-
Method Detail
-
getInboundHandlers
protected java.util.List<org.opensaml.messaging.handler.MessageHandler> getInboundHandlers() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
getOutboundPayloadHandlers
protected java.util.List<org.opensaml.messaging.handler.MessageHandler> getOutboundPayloadHandlers() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
getOutboundTransportHandlers
protected java.util.List<org.opensaml.messaging.handler.MessageHandler> getOutboundTransportHandlers() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildSAMLProtocolAndRoleHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLProtocolAndRoleHandler(javax.xml.namespace.QName roleName) throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildSAMLMetadataLookupHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLMetadataLookupHandler(SAML2MetadataResolver metadataResolver) throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildSchemaValidateXMLMessage
protected org.opensaml.messaging.handler.MessageHandler buildSchemaValidateXMLMessage() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildCheckMessageVersionHandler
protected org.opensaml.messaging.handler.MessageHandler buildCheckMessageVersionHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildMessageLifetimeSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildMessageLifetimeSecurityHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildInResponseToSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildInResponseToSecurityHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildMessageReplaySecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildMessageReplaySecurityHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildCheckMandatoryIssuer
protected org.opensaml.messaging.handler.MessageHandler buildCheckMandatoryIssuer() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildCheckExpectedIssuer
protected org.opensaml.messaging.handler.MessageHandler buildCheckExpectedIssuer() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildPopulateSignatureSigningParametersHandler
protected org.opensaml.messaging.handler.MessageHandler buildPopulateSignatureSigningParametersHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildPopulateSignatureValidationParametersHandler
protected org.opensaml.messaging.handler.MessageHandler buildPopulateSignatureValidationParametersHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildSAMLProtocolMessageXMLSignatureSecurityHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLProtocolMessageXMLSignatureSecurityHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildCheckAndRecordServerTLSEntityAuthenticationtHandler
protected org.opensaml.messaging.handler.MessageHandler buildCheckAndRecordServerTLSEntityAuthenticationtHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildCheckMandatoryAuthentication
protected org.opensaml.messaging.handler.MessageHandler buildCheckMandatoryAuthentication()
-
buildSAMLSOAPDecoderBodyHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLSOAPDecoderBodyHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildSAMLOutboundProtocolMessageSigningHandler
protected org.opensaml.messaging.handler.MessageHandler buildSAMLOutboundProtocolMessageSigningHandler() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
toHandlerChain
protected org.opensaml.messaging.handler.impl.BasicMessageHandlerChain toHandlerChain(java.util.List<org.opensaml.messaging.handler.MessageHandler> handlers)
-
newInstance
@Nonnull public org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipeline newInstance()
- Specified by:
newInstancein interfaceorg.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactory
-
newInstance
@Nonnull public org.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipeline newInstance(@Nullable java.lang.String pipelineName)- Specified by:
newInstancein interfaceorg.opensaml.messaging.pipeline.httpclient.HttpClientMessagePipelineFactory
-
-