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_ORDERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.opensaml.saml.saml2.core.LogoutResponsebuildSamlLogoutResponse(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 StringdetermineLogoutResponseBindingType(org.apereo.cas.support.saml.services.SamlRegisteredService samlRegisteredService) Determine logout response binding type string.intgetOrder()voidhandle(org.springframework.webflow.execution.RequestContext context) protected voidhandleSingleLogoutForPostBinding(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 voidhandleSingleLogoutForRedirectBinding(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 voidproduceSamlLogoutResponsePost(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 voidproduceSamlLogoutResponseRedirect(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.booleansupports(org.springframework.webflow.execution.RequestContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apereo.cas.logout.LogoutRedirectionStrategy
getName
-
Constructor Details
-
SamlIdPSingleLogoutRedirectionStrategy
public SamlIdPSingleLogoutRedirectionStrategy()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.apereo.cas.logout.LogoutRedirectionStrategy- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
supports
public boolean supports(org.springframework.webflow.execution.RequestContext context) - Specified by:
supportsin interfaceorg.apereo.cas.logout.LogoutRedirectionStrategy
-
handle
public void handle(org.springframework.webflow.execution.RequestContext context) - Specified by:
handlein interfaceorg.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 contextsamlLogoutRequest- the saml logout requestsamlRegisteredService- the saml registered serviceadaptor- 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 contextsamlLogoutRequest- the saml logout requestsamlRegisteredService- the saml registered serviceadaptor- 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 adaptorsloService- the slo servicecontext- the contextregisteredService- the registered servicelogoutRequest- 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 adaptorsloService- the slo servicecontext- the contextregisteredService- the registered servicelogoutRequest- 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 adaptorsloService- the slo servicerequestContext- the contextregisteredService- the registered servicelogoutRequest- the logout request- Returns:
- the logout response
- Throws:
Exception- the exception
-