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 TypeMethodDescription@Nullable Saml2LogoutRequestloadLogoutRequest(jakarta.servlet.http.HttpServletRequest request) Returns theSaml2LogoutRequestassociated to the providedHttpServletRequestornullif not available.@Nullable Saml2LogoutRequestremoveLogoutRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes and returns theSaml2LogoutRequestassociated to the providedHttpServletRequestandHttpServletResponseor if not available returnsnull.voidsaveLogoutRequest(@Nullable Saml2LogoutRequest logoutRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Persists theSaml2LogoutRequestassociating it to the providedHttpServletRequestand/orHttpServletResponse.
-
Method Details
-
loadLogoutRequest
Returns theSaml2LogoutRequestassociated to the providedHttpServletRequestornullif not available.- Parameters:
request- theHttpServletRequest- Returns:
- the
Saml2LogoutRequestornullif not available
-
saveLogoutRequest
void saveLogoutRequest(@Nullable Saml2LogoutRequest logoutRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Persists theSaml2LogoutRequestassociating it to the providedHttpServletRequestand/orHttpServletResponse.- Parameters:
logoutRequest- theSaml2LogoutRequest, ifnull, then remove logout requestrequest- theHttpServletRequestresponse- theHttpServletResponse
-
removeLogoutRequest
@Nullable Saml2LogoutRequest removeLogoutRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes and returns theSaml2LogoutRequestassociated to the providedHttpServletRequestandHttpServletResponseor if not available returnsnull.- Parameters:
request- theHttpServletRequestresponse- theHttpServletResponse- Returns:
- the
Saml2LogoutRequestornullif not available
-