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 theSaml2LogoutRequestassociated to the providedHttpServletRequestornullif not available.removeLogoutRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes and returns theSaml2LogoutRequestassociated to the providedHttpServletRequestandHttpServletResponseor if not available returnsnull.voidsaveLogoutRequest(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(Saml2LogoutRequest logoutRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Persists theSaml2LogoutRequestassociating it to the providedHttpServletRequestand/orHttpServletResponse.- Parameters:
logoutRequest- theSaml2LogoutRequestrequest- theHttpServletRequestresponse- theHttpServletResponse
-
removeLogoutRequest
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
-