Class SamlIdPSingleLogoutRedirectionStrategy

java.lang.Object
org.apereo.cas.support.saml.web.idp.profile.slo.SamlIdPSingleLogoutRedirectionStrategy
All Implemented Interfaces:
org.apereo.cas.logout.LogoutRedirectionStrategy, org.springframework.core.Ordered

public class SamlIdPSingleLogoutRedirectionStrategy extends Object implements org.apereo.cas.logout.LogoutRedirectionStrategy
Since:
6.3.0
  • Field Summary

    Fields inherited from interface org.apereo.cas.logout.LogoutRedirectionStrategy

    DEFAULT_ORDER

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.opensaml.saml.saml2.core.LogoutResponse
    buildSamlLogoutResponse(org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.saml.saml2.metadata.SingleLogoutService sloService, org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.support.saml.services.SamlRegisteredService registeredService, org.opensaml.saml.saml2.core.LogoutRequest logoutRequest)
    Build saml logout response.
    protected String
    determineLogoutResponseBindingType(org.apereo.cas.support.saml.services.SamlRegisteredService samlRegisteredService)
    Determine logout response binding type string.
    int
     
    void
    handle(org.springframework.webflow.execution.RequestContext context)
     
    protected void
    handleSingleLogoutForPostBinding(org.springframework.webflow.execution.RequestContext context, org.opensaml.saml.saml2.core.LogoutRequest samlLogoutRequest, org.apereo.cas.support.saml.services.SamlRegisteredService samlRegisteredService, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
    Handle single logout for post binding.
    protected void
    handleSingleLogoutForRedirectBinding(org.springframework.webflow.execution.RequestContext context, org.opensaml.saml.saml2.core.LogoutRequest samlLogoutRequest, org.apereo.cas.support.saml.services.SamlRegisteredService samlRegisteredService, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
    Handle single logout for redirect binding.
    protected void
    produceSamlLogoutResponsePost(org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.saml.saml2.metadata.SingleLogoutService sloService, org.springframework.webflow.execution.RequestContext context, org.apereo.cas.support.saml.services.SamlRegisteredService registeredService, org.opensaml.saml.saml2.core.LogoutRequest logoutRequest)
    Produce saml logout response post.
    protected void
    produceSamlLogoutResponseRedirect(org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.saml.saml2.metadata.SingleLogoutService sloService, org.springframework.webflow.execution.RequestContext context, org.apereo.cas.support.saml.services.SamlRegisteredService registeredService, org.opensaml.saml.saml2.core.LogoutRequest logoutRequest)
    Produce saml logout response redirect.
    boolean
    supports(org.springframework.webflow.execution.RequestContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apereo.cas.logout.LogoutRedirectionStrategy

    getName
  • Constructor Details

    • SamlIdPSingleLogoutRedirectionStrategy

      public SamlIdPSingleLogoutRedirectionStrategy()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.apereo.cas.logout.LogoutRedirectionStrategy
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • supports

      public boolean supports(org.springframework.webflow.execution.RequestContext context)
      Specified by:
      supports in interface org.apereo.cas.logout.LogoutRedirectionStrategy
    • handle

      public void handle(org.springframework.webflow.execution.RequestContext context)
      Specified by:
      handle in interface org.apereo.cas.logout.LogoutRedirectionStrategy
    • determineLogoutResponseBindingType

      protected String determineLogoutResponseBindingType(org.apereo.cas.support.saml.services.SamlRegisteredService samlRegisteredService)
      Determine logout response binding type string.
      Parameters:
      samlRegisteredService - the saml registered service
      Returns:
      the string
    • handleSingleLogoutForRedirectBinding

      protected void handleSingleLogoutForRedirectBinding(org.springframework.webflow.execution.RequestContext context, org.opensaml.saml.saml2.core.LogoutRequest samlLogoutRequest, org.apereo.cas.support.saml.services.SamlRegisteredService samlRegisteredService, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
      Handle single logout for redirect binding.
      Parameters:
      context - the context
      samlLogoutRequest - the saml logout request
      samlRegisteredService - the saml registered service
      adaptor - the adaptor
    • handleSingleLogoutForPostBinding

      protected void handleSingleLogoutForPostBinding(org.springframework.webflow.execution.RequestContext context, org.opensaml.saml.saml2.core.LogoutRequest samlLogoutRequest, org.apereo.cas.support.saml.services.SamlRegisteredService samlRegisteredService, org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor)
      Handle single logout for post binding.
      Parameters:
      context - the context
      samlLogoutRequest - the saml logout request
      samlRegisteredService - the saml registered service
      adaptor - the adaptor
    • produceSamlLogoutResponseRedirect

      protected void produceSamlLogoutResponseRedirect(org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.saml.saml2.metadata.SingleLogoutService sloService, org.springframework.webflow.execution.RequestContext context, org.apereo.cas.support.saml.services.SamlRegisteredService registeredService, org.opensaml.saml.saml2.core.LogoutRequest logoutRequest) throws Exception
      Produce saml logout response redirect.
      Parameters:
      adaptor - the adaptor
      sloService - the slo service
      context - the context
      registeredService - the registered service
      logoutRequest - the logout request
      Throws:
      Exception - the exception
    • produceSamlLogoutResponsePost

      protected void produceSamlLogoutResponsePost(org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.saml.saml2.metadata.SingleLogoutService sloService, org.springframework.webflow.execution.RequestContext context, org.apereo.cas.support.saml.services.SamlRegisteredService registeredService, org.opensaml.saml.saml2.core.LogoutRequest logoutRequest) throws Exception
      Produce saml logout response post.
      Parameters:
      adaptor - the adaptor
      sloService - the slo service
      context - the context
      registeredService - the registered service
      logoutRequest - the logout request
      Throws:
      Exception - the exception
    • buildSamlLogoutResponse

      protected org.opensaml.saml.saml2.core.LogoutResponse buildSamlLogoutResponse(org.apereo.cas.support.saml.services.idp.metadata.SamlRegisteredServiceServiceProviderMetadataFacade adaptor, org.opensaml.saml.saml2.metadata.SingleLogoutService sloService, org.springframework.webflow.execution.RequestContext requestContext, org.apereo.cas.support.saml.services.SamlRegisteredService registeredService, org.opensaml.saml.saml2.core.LogoutRequest logoutRequest) throws Exception
      Build saml logout response.
      Parameters:
      adaptor - the adaptor
      sloService - the slo service
      requestContext - the context
      registeredService - the registered service
      logoutRequest - the logout request
      Returns:
      the logout response
      Throws:
      Exception - the exception