public final class HttpSessionOAuth2AuthorizationRequestRepository extends java.lang.Object implements AuthorizationRequestRepository<OAuth2AuthorizationRequest>
AuthorizationRequestRepository
that stores
OAuth2AuthorizationRequest
in the HttpSession
.AuthorizationRequestRepository
,
OAuth2AuthorizationRequest
Constructor and Description |
---|
HttpSessionOAuth2AuthorizationRequestRepository() |
Modifier and Type | Method and Description |
---|---|
OAuth2AuthorizationRequest |
loadAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
Returns the
OAuth2AuthorizationRequest associated to the provided HttpServletRequest
or null if not available. |
OAuth2AuthorizationRequest |
removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
Removes and returns the
OAuth2AuthorizationRequest associated to the
provided HttpServletRequest or if not available returns null . |
OAuth2AuthorizationRequest |
removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Removes and returns the
OAuth2AuthorizationRequest associated to the
provided HttpServletRequest and HttpServletResponse or if not available returns null . |
void |
saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Persists the
OAuth2AuthorizationRequest associating it to
the provided HttpServletRequest and/or HttpServletResponse . |
public HttpSessionOAuth2AuthorizationRequestRepository()
public OAuth2AuthorizationRequest loadAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
AuthorizationRequestRepository
OAuth2AuthorizationRequest
associated to the provided HttpServletRequest
or null
if not available.loadAuthorizationRequest
in interface AuthorizationRequestRepository<OAuth2AuthorizationRequest>
request
- the HttpServletRequest
OAuth2AuthorizationRequest
or null
if not availablepublic void saveAuthorizationRequest(OAuth2AuthorizationRequest authorizationRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
AuthorizationRequestRepository
OAuth2AuthorizationRequest
associating it to
the provided HttpServletRequest
and/or HttpServletResponse
.saveAuthorizationRequest
in interface AuthorizationRequestRepository<OAuth2AuthorizationRequest>
authorizationRequest
- the OAuth2AuthorizationRequest
request
- the HttpServletRequest
response
- the HttpServletResponse
public OAuth2AuthorizationRequest removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
AuthorizationRequestRepository
OAuth2AuthorizationRequest
associated to the
provided HttpServletRequest
or if not available returns null
.removeAuthorizationRequest
in interface AuthorizationRequestRepository<OAuth2AuthorizationRequest>
request
- the HttpServletRequest
OAuth2AuthorizationRequest
or null
if not availablepublic OAuth2AuthorizationRequest removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
AuthorizationRequestRepository
OAuth2AuthorizationRequest
associated to the
provided HttpServletRequest
and HttpServletResponse
or if not available returns null
.removeAuthorizationRequest
in interface AuthorizationRequestRepository<OAuth2AuthorizationRequest>
request
- the HttpServletRequest
response
- the HttpServletResponse
OAuth2AuthorizationRequest
or null
if not available