Class UrlResolvedSAML2MessageContext

java.lang.Object
org.pac4j.saml.context.SAML2MessageContext
de.xima.fc.security.pac4j.saml.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

    Modifier and Type
    Method
    Description
    org.opensaml.saml.saml2.metadata.AssertionConsumerService
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UrlResolvedSAML2MessageContext

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

    • 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