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>
ASaml2AuthenticationRequestRepositoryimplementation that usesHttpSessionto 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 AbstractSaml2AuthenticationRequestloadAuthenticationRequest(javax.servlet.http.HttpServletRequest request)Loads theAbstractSaml2AuthenticationRequestfrom the requestAbstractSaml2AuthenticationRequestremoveAuthenticationRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Removes the authentication request using theHttpServletRequestandHttpServletResponsevoidsaveAuthenticationRequest(AbstractSaml2AuthenticationRequest authenticationRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Saves the current authentication request using theHttpServletRequestandHttpServletResponse
-
-
-
Method Detail
-
loadAuthenticationRequest
public AbstractSaml2AuthenticationRequest loadAuthenticationRequest(javax.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, javax.servlet.http.HttpServletRequest request, javax.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(javax.servlet.http.HttpServletRequest request, javax.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
-
-