Class UrlResolvedSAML2MessageContext


  • public class UrlResolvedSAML2MessageContext
    extends org.pac4j.saml.context.SAML2MessageContext
    Extension of the default SAML2MessageContext that applies a URL resolver to the assertion consumer service URLs since the SAML2Client / SAML2Configuration don't apply it (because it is done on initialization for some reason where there is no web context).
    Since:
    8.0.0
    Author:
    XIMA MEDIA GmbH, Dresden
    • Constructor Summary

      Constructors 
      Constructor Description
      UrlResolvedSAML2MessageContext​(org.pac4j.saml.client.SAML2Client client, org.pac4j.saml.context.SAML2MessageContext messageContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.opensaml.saml.saml2.metadata.AssertionConsumerService getSPAssertionConsumerService​(String acsIndex)  
      org.opensaml.saml.saml2.metadata.AssertionConsumerService getSPAssertionConsumerService​(org.opensaml.saml.saml2.core.StatusResponseType response)  
      protected org.opensaml.saml.saml2.metadata.AssertionConsumerService getSPAssertionConsumerService​(org.opensaml.saml.saml2.metadata.SPSSODescriptor spssoDescriptor, List<org.opensaml.saml.saml2.metadata.AssertionConsumerService> services)  
      • Methods inherited from class org.pac4j.saml.context.SAML2MessageContext

        getBaseID, getConfigurationContext, getIDPSingleLogoutService, getIDPSingleSignOnService, getIDPSSODescriptor, getMessageContext, getProfileRequestContext, getProfileRequestContextOutboundMessageTransportResponse, getSAML2Configuration, getSAMLBindingContext, getSAMLEndpointContext, getSAMLMessageStore, getSAMLPeerEndpointContext, getSAMLPeerEntityContext, getSAMLPeerMetadataContext, getSAMLProtocolContext, getSAMLSelfEndpointContext, getSAMLSelfEntityContext, getSAMLSelfMetadataContext, getSAMLSelfProtocolContext, getSAMLSubjectNameIdentifierContext, getSecurityParametersContext, getSessionStore, getSOAP11Context, getSPAssertionConsumerService, getSPSSODescriptor, getSubjectAssertion, getSubjectConfirmations, getWebContext, setBaseID, setMessageContext, setSaml2Configuration, setSAMLMessageStore, setSessionStore, setSubjectAssertion, setWebContext
    • Constructor Detail

      • UrlResolvedSAML2MessageContext

        public UrlResolvedSAML2MessageContext​(org.pac4j.saml.client.SAML2Client client,
                                              org.pac4j.saml.context.SAML2MessageContext messageContext)
    • Method Detail

      • getSPAssertionConsumerService

        protected org.opensaml.saml.saml2.metadata.AssertionConsumerService getSPAssertionConsumerService​(org.opensaml.saml.saml2.metadata.SPSSODescriptor spssoDescriptor,
                                                                                                          List<org.opensaml.saml.saml2.metadata.AssertionConsumerService> services)
        Overrides:
        getSPAssertionConsumerService in class org.pac4j.saml.context.SAML2MessageContext
      • getSPAssertionConsumerService

        public org.opensaml.saml.saml2.metadata.AssertionConsumerService getSPAssertionConsumerService​(org.opensaml.saml.saml2.core.StatusResponseType response)
        Overrides:
        getSPAssertionConsumerService in class org.pac4j.saml.context.SAML2MessageContext
      • getSPAssertionConsumerService

        public org.opensaml.saml.saml2.metadata.AssertionConsumerService getSPAssertionConsumerService​(String acsIndex)
        Overrides:
        getSPAssertionConsumerService in class org.pac4j.saml.context.SAML2MessageContext