Interface Saml2LogoutRequestRepository
- All Known Implementing Classes:
HttpSessionLogoutRequestRepository
public interface Saml2LogoutRequestRepository
Implementations of this interface are responsible for the persistence of
Saml2LogoutRequest
between requests.
Used by the Saml2RelyingPartyInitiatedLogoutSuccessHandler
for persisting the
Logout Request before it initiates the SAML 2.0 SLO flow. As well, used by
OpenSamlLogoutResponseHandler
for resolving the Logout Request associated with
that Logout Response.
- Since:
- 5.6
- See Also:
-
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
.
-
Method Details
-
loadLogoutRequest
Returns theSaml2LogoutRequest
associated to the providedHttpServletRequest
ornull
if not available.- Parameters:
request
- theHttpServletRequest
- Returns:
- the
Saml2LogoutRequest
ornull
if not available
-
saveLogoutRequest
void saveLogoutRequest(Saml2LogoutRequest logoutRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Persists theSaml2LogoutRequest
associating it to the providedHttpServletRequest
and/orHttpServletResponse
.- Parameters:
logoutRequest
- theSaml2LogoutRequest
request
- theHttpServletRequest
response
- theHttpServletResponse
-
removeLogoutRequest
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
.- Parameters:
request
- theHttpServletRequest
response
- theHttpServletResponse
- Returns:
- the
Saml2LogoutRequest
ornull
if not available
-