Class SAMLProcessorFactory

java.lang.Object
org.nuxeo.ecm.platform.auth.saml.processor.SAMLProcessorFactory

public class SAMLProcessorFactory extends Object
Since:
2023.0
  • Field Details

    • SIGNATURE_ALGORITHM

      protected static final String SIGNATURE_ALGORITHM
      See Also:
    • DIGEST_ALGORITHM

      protected static final String DIGEST_ALGORITHM
      See Also:
    • inboundHandlerChain

      protected final org.opensaml.messaging.handler.MessageHandler inboundHandlerChain
      Message handlers that run on a SAML inbound message, ie: message from IDP.
    • initInboundForOutboundHandlerChain

      protected final org.opensaml.messaging.handler.MessageHandler initInboundForOutboundHandlerChain
      Message handlers that init the inbound context during SAML outbound message creation, ie: message to IDP.
    • outboundHandlerChain

      protected final org.opensaml.messaging.handler.MessageHandler outboundHandlerChain
      Message handlers that run on a SAML outbound message, ie: message to IDP.
  • Constructor Details

    • SAMLProcessorFactory

      public SAMLProcessorFactory(Map<String,String> parameters)
  • Method Details

    • retrieveInboundProcessor

      public Optional<SAMLProcessor> retrieveInboundProcessor(javax.servlet.http.HttpServletRequest request)
    • retrieveOutboundProcessor

      public SAMLProcessor retrieveOutboundProcessor(String profileId)
    • toHandlerChain

      protected org.opensaml.messaging.handler.impl.BasicMessageHandlerChain toHandlerChain(List<org.opensaml.messaging.handler.MessageHandler> outboundHandlers) throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • instantiateIdpMetadataResolver

      protected org.opensaml.saml.metadata.resolver.MetadataResolver instantiateIdpMetadataResolver(Map<String,String> parameters) throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • instantiateSigningConfiguration

      protected org.opensaml.xmlsec.SignatureSigningConfiguration instantiateSigningConfiguration(Map<String,String> parameters)
    • instantiateValidationConfiguration

      protected org.opensaml.xmlsec.SignatureValidationConfiguration instantiateValidationConfiguration(org.opensaml.saml.metadata.resolver.MetadataResolver idpMetadataResolver) throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • instantiateDecryptionConfiguration

      protected org.opensaml.xmlsec.DecryptionConfiguration instantiateDecryptionConfiguration()
    • buildSAMLProtocolAndRoleHandler

      protected org.opensaml.messaging.handler.MessageHandler buildSAMLProtocolAndRoleHandler(QName roleName) throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
      Builds handler to populate peer.
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • buildEntityIdHandler

      protected <C extends org.opensaml.saml.common.messaging.context.AbstractSAMLEntityContext> org.opensaml.messaging.handler.MessageHandler buildEntityIdHandler(String entityId, Class<C> contextClass) throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
      Builds handler to populate peer.
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • buildSAMLMetadataLookupHandler

      protected org.opensaml.messaging.handler.MessageHandler buildSAMLMetadataLookupHandler(org.opensaml.saml.metadata.resolver.MetadataResolver metadataResolver) 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
    • buildCheckExpectedIssuer

      protected org.opensaml.messaging.handler.MessageHandler buildCheckExpectedIssuer() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • buildCheckResponseStatus

      protected org.opensaml.messaging.handler.MessageHandler buildCheckResponseStatus() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • buildPopulateSignatureValidationParametersHandler

      protected org.opensaml.messaging.handler.MessageHandler buildPopulateSignatureValidationParametersHandler(org.opensaml.xmlsec.SignatureValidationConfiguration validationConfiguration) 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
    • buildCheckMandatoryAuthentication

      protected org.opensaml.messaging.handler.MessageHandler buildCheckMandatoryAuthentication()
    • buildPopulateDecryptionParametersHandler

      protected org.opensaml.messaging.handler.MessageHandler buildPopulateDecryptionParametersHandler(org.opensaml.xmlsec.DecryptionConfiguration decryptionConfiguration) throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
      Throws:
      net.shibboleth.utilities.java.support.component.ComponentInitializationException
    • buildPopulateSignatureSigningParametersHandler

      protected org.opensaml.messaging.handler.MessageHandler buildPopulateSignatureSigningParametersHandler(org.opensaml.xmlsec.SignatureSigningConfiguration signingConfiguration) 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