public final class HttpSessionOAuth2AuthorizationRequestRepository extends java.lang.Object implements AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>
AuthorizationRequestRepository that stores
OAuth2AuthorizationRequest in the HttpSession.AuthorizationRequestRepository,
OAuth2AuthorizationRequest| Constructor and Description |
|---|
HttpSessionOAuth2AuthorizationRequestRepository() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest |
loadAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
Returns the
OAuth2AuthorizationRequest associated to the provided
HttpServletRequest or null if not available. |
org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest |
removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
Removes and returns the
OAuth2AuthorizationRequest associated to the
provided HttpServletRequest or if not available returns null. |
org.springframework.security.oauth2.core.endpoint.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(org.springframework.security.oauth2.core.endpoint.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 org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest loadAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
AuthorizationRequestRepositoryOAuth2AuthorizationRequest associated to the provided
HttpServletRequest or null if not available.loadAuthorizationRequest in interface AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>request - the HttpServletRequestOAuth2AuthorizationRequest or null if not availablepublic void saveAuthorizationRequest(org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest authorizationRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
AuthorizationRequestRepositoryOAuth2AuthorizationRequest associating it to the provided
HttpServletRequest and/or HttpServletResponse.saveAuthorizationRequest in interface AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>authorizationRequest - the OAuth2AuthorizationRequestrequest - the HttpServletRequestresponse - the HttpServletResponsepublic org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request)
AuthorizationRequestRepositoryOAuth2AuthorizationRequest associated to the
provided HttpServletRequest or if not available returns null.removeAuthorizationRequest in interface AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>request - the HttpServletRequestOAuth2AuthorizationRequest or null if not
availablepublic org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest removeAuthorizationRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
AuthorizationRequestRepositoryOAuth2AuthorizationRequest associated to the
provided HttpServletRequest and HttpServletResponse or if not
available returns null.removeAuthorizationRequest in interface AuthorizationRequestRepository<org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationRequest>request - the HttpServletRequestresponse - the HttpServletResponseOAuth2AuthorizationRequest or null if not available