Class Saml2RelyingPartyInitiatedLogoutSuccessHandler
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.web.authentication.logout.Saml2RelyingPartyInitiatedLogoutSuccessHandler
-
- All Implemented Interfaces:
org.springframework.security.web.authentication.logout.LogoutSuccessHandler
public final class Saml2RelyingPartyInitiatedLogoutSuccessHandler extends java.lang.Object implements org.springframework.security.web.authentication.logout.LogoutSuccessHandlerA success handler for issuing a SAML 2.0 Logout Request to the the SAML 2.0 Asserting Party- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description Saml2RelyingPartyInitiatedLogoutSuccessHandler(Saml2LogoutRequestResolver logoutRequestResolver)Constructs aSaml2RelyingPartyInitiatedLogoutSuccessHandlerusing the provided parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLogoutSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication)Produce and send a SAML 2.0 Logout Response based on the SAML 2.0 Logout Request received from the asserting partyvoidsetLogoutRequestRepository(Saml2LogoutRequestRepository logoutRequestRepository)Use thisSaml2LogoutRequestRepositoryfor saving the SAML 2.0 Logout Request
-
-
-
Constructor Detail
-
Saml2RelyingPartyInitiatedLogoutSuccessHandler
public Saml2RelyingPartyInitiatedLogoutSuccessHandler(Saml2LogoutRequestResolver logoutRequestResolver)
Constructs aSaml2RelyingPartyInitiatedLogoutSuccessHandlerusing the provided parameters- Parameters:
logoutRequestResolver- theSaml2LogoutRequestResolverto use
-
-
Method Detail
-
onLogoutSuccess
public void onLogoutSuccess(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.Authentication authentication) throws java.io.IOExceptionProduce and send a SAML 2.0 Logout Response based on the SAML 2.0 Logout Request received from the asserting party- Specified by:
onLogoutSuccessin interfaceorg.springframework.security.web.authentication.logout.LogoutSuccessHandler- Parameters:
request- the HTTP requestresponse- the HTTP responseauthentication- the current principal details- Throws:
java.io.IOException- when failing to write to the response
-
setLogoutRequestRepository
public void setLogoutRequestRepository(Saml2LogoutRequestRepository logoutRequestRepository)
Use thisSaml2LogoutRequestRepositoryfor saving the SAML 2.0 Logout Request- Parameters:
logoutRequestRepository- theSaml2LogoutRequestRepositoryto use
-
-