Class HttpSessionLogoutRequestRepository
java.lang.Object
org.springframework.security.saml2.provider.service.web.authentication.logout.HttpSessionLogoutRequestRepository
- All Implemented Interfaces:
Saml2LogoutRequestRepository
public final class HttpSessionLogoutRequestRepository
extends Object
implements Saml2LogoutRequestRepository
An implementation of an
Saml2LogoutRequestRepository
that stores
Saml2LogoutRequest
in the HttpSession
.- Since:
- 5.6
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionloadLogoutRequest
(jakarta.servlet.http.HttpServletRequest request) Returns theSaml2LogoutRequest
associated to the providedHttpServletRequest
ornull
if not available.removeLogoutRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes and returns theSaml2LogoutRequest
associated to the providedHttpServletRequest
andHttpServletResponse
or if not available returnsnull
.void
saveLogoutRequest
(Saml2LogoutRequest logoutRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Persists theSaml2LogoutRequest
associating it to the providedHttpServletRequest
and/orHttpServletResponse
.
-
Constructor Details
-
HttpSessionLogoutRequestRepository
public HttpSessionLogoutRequestRepository()
-
-
Method Details
-
loadLogoutRequest
Returns theSaml2LogoutRequest
associated to the providedHttpServletRequest
ornull
if not available.- Specified by:
loadLogoutRequest
in interfaceSaml2LogoutRequestRepository
- Parameters:
request
- theHttpServletRequest
- Returns:
- the
Saml2LogoutRequest
ornull
if not available
-
saveLogoutRequest
public void saveLogoutRequest(Saml2LogoutRequest logoutRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Persists theSaml2LogoutRequest
associating it to the providedHttpServletRequest
and/orHttpServletResponse
.- Specified by:
saveLogoutRequest
in interfaceSaml2LogoutRequestRepository
- Parameters:
logoutRequest
- theSaml2LogoutRequest
request
- theHttpServletRequest
response
- theHttpServletResponse
-
removeLogoutRequest
public Saml2LogoutRequest removeLogoutRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes and returns theSaml2LogoutRequest
associated to the providedHttpServletRequest
andHttpServletResponse
or if not available returnsnull
.- Specified by:
removeLogoutRequest
in interfaceSaml2LogoutRequestRepository
- Parameters:
request
- theHttpServletRequest
response
- theHttpServletResponse
- Returns:
- the
Saml2LogoutRequest
ornull
if not available
-