public class TokenAuthorizationResponseHandler extends Object implements TokenEndpointResponseHandler
TokenEndpointResponseHandler
Handles the "client_credentials" flow| Constructor and Description |
|---|
TokenAuthorizationResponseHandler(com.google.inject.Provider<OAuth2Message> oauth2MessageProvider,
OAuth2Store store) |
| Modifier and Type | Method and Description |
|---|---|
OAuth2HandlerError |
handleResponse(OAuth2Accessor accessor,
HttpResponse response)
Let the handler do it's magic including any accessor/store updates.
|
boolean |
handlesResponse(OAuth2Accessor accessor,
HttpResponse response)
Does the handler support this
OAuth2Accessor / HttpResponse
response? |
@Inject public TokenAuthorizationResponseHandler(com.google.inject.Provider<OAuth2Message> oauth2MessageProvider, OAuth2Store store)
public OAuth2HandlerError handleResponse(OAuth2Accessor accessor, HttpResponse response)
TokenEndpointResponseHandlerOAuth2HandlerError.
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 TokenEndpointResponseHandlerpublic boolean handlesResponse(OAuth2Accessor accessor, HttpResponse response)
TokenEndpointResponseHandlerOAuth2Accessor / HttpResponse
response?handlesResponse in interface TokenEndpointResponseHandlertrue if handleRequest() should be invokedCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.