Class HttpSessionSaml2AuthenticationRequestRepository
- java.lang.Object
-
- org.springframework.security.saml2.provider.service.web.HttpSessionSaml2AuthenticationRequestRepository
-
- All Implemented Interfaces:
Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>
public class HttpSessionSaml2AuthenticationRequestRepository extends java.lang.Object implements Saml2AuthenticationRequestRepository<AbstractSaml2AuthenticationRequest>
ASaml2AuthenticationRequestRepository
implementation that usesHttpSession
to store and retrieve theAbstractSaml2AuthenticationRequest
- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description HttpSessionSaml2AuthenticationRequestRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractSaml2AuthenticationRequest
loadAuthenticationRequest(javax.servlet.http.HttpServletRequest request)
Loads theAbstractSaml2AuthenticationRequest
from the requestAbstractSaml2AuthenticationRequest
removeAuthenticationRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Removes the authentication request using theHttpServletRequest
andHttpServletResponse
void
saveAuthenticationRequest(AbstractSaml2AuthenticationRequest authenticationRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
Saves the current authentication request using theHttpServletRequest
andHttpServletResponse
-
-
-
Method Detail
-
loadAuthenticationRequest
public AbstractSaml2AuthenticationRequest loadAuthenticationRequest(javax.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, javax.servlet.http.HttpServletRequest request, javax.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(javax.servlet.http.HttpServletRequest request, javax.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
-
-