Class HttpSessionLogoutRequestRepository
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.web.authentication.logout.HttpSessionLogoutRequestRepository
-
- All Implemented Interfaces:
Saml2LogoutRequestRepository
public final class HttpSessionLogoutRequestRepository extends java.lang.Object implements Saml2LogoutRequestRepository
An implementation of anSaml2LogoutRequestRepository
that storesSaml2LogoutRequest
in theHttpSession
.- Since:
- 5.6
- See Also:
Saml2LogoutRequestRepository
,Saml2LogoutRequest
-
-
Constructor Summary
Constructors Constructor Description HttpSessionLogoutRequestRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Saml2LogoutRequest
loadLogoutRequest(javax.servlet.http.HttpServletRequest request)
Returns theSaml2LogoutRequest
associated to the providedHttpServletRequest
ornull
if not available.Saml2LogoutRequest
removeLogoutRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Removes and returns theSaml2LogoutRequest
associated to the providedHttpServletRequest
andHttpServletResponse
or if not available returnsnull
.void
saveLogoutRequest(Saml2LogoutRequest logoutRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Persists theSaml2LogoutRequest
associating it to the providedHttpServletRequest
and/orHttpServletResponse
.
-
-
-
Method Detail
-
loadLogoutRequest
public Saml2LogoutRequest loadLogoutRequest(javax.servlet.http.HttpServletRequest request)
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, javax.servlet.http.HttpServletRequest request, javax.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(javax.servlet.http.HttpServletRequest request, javax.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
-
-