public class CodeAuthorizationResponseHandler extends Object implements AuthorizationEndpointResponseHandler
AuthorizationEndpointResponseHandler
Handles the "code" flow| Constructor and Description |
|---|
CodeAuthorizationResponseHandler(com.google.inject.Provider<OAuth2Message> oauth2MessageProvider,
List<ClientAuthenticationHandler> clientAuthenticationHandlers,
List<TokenEndpointResponseHandler> tokenEndpointResponseHandlers,
HttpFetcher fetcher) |
| Modifier and Type | Method and Description |
|---|---|
OAuth2HandlerError |
handleRequest(OAuth2Accessor accessor,
javax.servlet.http.HttpServletRequest request)
Let the handler do it's magic including any accessor/store updates.
|
OAuth2HandlerError |
handleResponse(OAuth2Accessor accessor,
HttpResponse response)
Let the handler do it's magic including any accessor/store updates.
|
boolean |
handlesRequest(OAuth2Accessor accessor,
javax.servlet.http.HttpServletRequest request)
Does the handler support this
OAuth2Accessor /
HttpServletRequest response? The presumably has come from the
OAuth2CallbackServlet or somewhere similar. |
boolean |
handlesResponse(OAuth2Accessor accessor,
HttpResponse response)
Does the handler support this
OAuth2Accessor / HttpResponse
response? |
@Inject public CodeAuthorizationResponseHandler(com.google.inject.Provider<OAuth2Message> oauth2MessageProvider, List<ClientAuthenticationHandler> clientAuthenticationHandlers, List<TokenEndpointResponseHandler> tokenEndpointResponseHandlers, HttpFetcher fetcher)
public OAuth2HandlerError handleRequest(OAuth2Accessor accessor, javax.servlet.http.HttpServletRequest request)
AuthorizationEndpointResponseHandlerOAuth2HandlerError.
Applies in particular to the Authorization Code flow redirect.
See http://tools.ietf.org/html/draft-ietf-oauth-v2-21#section-4.1.2handleRequest in interface AuthorizationEndpointResponseHandlerpublic OAuth2HandlerError handleResponse(OAuth2Accessor accessor, HttpResponse response)
AuthorizationEndpointResponseHandlerOAuth2HandlerError.
Applies in particular to the client_credentials flow.
See http://tools.ietf.org/html/draft-ietf-oauth-v2-21#section-4.4.1handleResponse in interface AuthorizationEndpointResponseHandlerpublic boolean handlesRequest(OAuth2Accessor accessor, javax.servlet.http.HttpServletRequest request)
AuthorizationEndpointResponseHandlerOAuth2Accessor /
HttpServletRequest response? The presumably has come from the
OAuth2CallbackServlet or somewhere similar.handlesRequest in interface AuthorizationEndpointResponseHandlertrue if handleRequest() should be invokedpublic boolean handlesResponse(OAuth2Accessor accessor, HttpResponse response)
AuthorizationEndpointResponseHandlerOAuth2Accessor / HttpResponse
response?handlesResponse in interface AuthorizationEndpointResponseHandlertrue if handleRequest() should be invokedCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.