Class HttpSessionSaml2AuthenticationRequestRepository
java.lang.Object
org.springframework.security.saml2.provider.service.web.HttpSessionSaml2AuthenticationRequestRepository
- All Implemented Interfaces:
Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>
public class HttpSessionSaml2AuthenticationRequestRepository
extends Object
implements Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>
A
Saml2AuthenticationRequestRepository
implementation that uses
HttpSession
to store and retrieve the
AbstractSaml2AuthenticationRequest
- Since:
- 5.6
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionloadAuthenticationRequest
(jakarta.servlet.http.HttpServletRequest request) Loads theAbstractSaml2AuthenticationRequest
from the requestremoveAuthenticationRequest
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes the authentication request using theHttpServletRequest
andHttpServletResponse
void
saveAuthenticationRequest
(AbstractSaml2AuthenticationRequest authenticationRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Saves the current authentication request using theHttpServletRequest
andHttpServletResponse
-
Constructor Details
-
HttpSessionSaml2AuthenticationRequestRepository
public HttpSessionSaml2AuthenticationRequestRepository()
-
-
Method Details
-
loadAuthenticationRequest
public AbstractSaml2AuthenticationRequest loadAuthenticationRequest(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:Saml2AuthenticationRequestRepository
Loads theAbstractSaml2AuthenticationRequest
from the request- Specified by:
loadAuthenticationRequest
in interfaceSaml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>
- Parameters:
request
- the current request- Returns:
- the
AbstractSaml2AuthenticationRequest
ornull
if it is not present
-
saveAuthenticationRequest
public void saveAuthenticationRequest(AbstractSaml2AuthenticationRequest authenticationRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from interface:Saml2AuthenticationRequestRepository
Saves the current authentication request using theHttpServletRequest
andHttpServletResponse
- Specified by:
saveAuthenticationRequest
in interfaceSaml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>
- Parameters:
authenticationRequest
- theAbstractSaml2AuthenticationRequest
request
- the current requestresponse
- the current response
-
removeAuthenticationRequest
public AbstractSaml2AuthenticationRequest removeAuthenticationRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from interface:Saml2AuthenticationRequestRepository
Removes the authentication request using theHttpServletRequest
andHttpServletResponse
- Specified by:
removeAuthenticationRequest
in interfaceSaml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>
- Parameters:
request
- the current requestresponse
- the current response- Returns:
- the removed
AbstractSaml2AuthenticationRequest
ornull
if it is not present
-