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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadAuthenticationRequest(jakarta.servlet.http.HttpServletRequest request) Loads theAbstractSaml2AuthenticationRequestfrom the requestremoveAuthenticationRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Removes the authentication request using theHttpServletRequestandHttpServletResponsevoidsaveAuthenticationRequest(AbstractSaml2AuthenticationRequest authenticationRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Saves the current authentication request using theHttpServletRequestandHttpServletResponse
-
Constructor Details
-
HttpSessionSaml2AuthenticationRequestRepository
public HttpSessionSaml2AuthenticationRequestRepository()
-
-
Method Details
-
loadAuthenticationRequest
public AbstractSaml2AuthenticationRequest loadAuthenticationRequest(jakarta.servlet.http.HttpServletRequest request) Description copied from interface:Saml2AuthenticationRequestRepositoryLoads theAbstractSaml2AuthenticationRequestfrom the request- Specified by:
loadAuthenticationRequestin interfaceSaml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>- Parameters:
request- the current request- Returns:
- the
AbstractSaml2AuthenticationRequestornullif it is not present
-
saveAuthenticationRequest
public void saveAuthenticationRequest(AbstractSaml2AuthenticationRequest authenticationRequest, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from interface:Saml2AuthenticationRequestRepositorySaves the current authentication request using theHttpServletRequestandHttpServletResponse- Specified by:
saveAuthenticationRequestin interfaceSaml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>- Parameters:
authenticationRequest- theAbstractSaml2AuthenticationRequestrequest- the current requestresponse- the current response
-
removeAuthenticationRequest
public AbstractSaml2AuthenticationRequest removeAuthenticationRequest(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from interface:Saml2AuthenticationRequestRepositoryRemoves the authentication request using theHttpServletRequestandHttpServletResponse- Specified by:
removeAuthenticationRequestin interfaceSaml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>- Parameters:
request- the current requestresponse- the current response- Returns:
- the removed
AbstractSaml2AuthenticationRequestornullif it is not present
-