public class ClientCredentialsGrantTypeHandler extends Object implements GrantRequestHandler
GrantRequestHandler
Handles the "client_credentials" flow| Constructor and Description |
|---|
ClientCredentialsGrantTypeHandler(List<ClientAuthenticationHandler> clientAuthenticationHandlers) |
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
getAuthorizationRequest(OAuth2Accessor accessor,
String completeAuthorizationUrl)
If
GrantRequestHandler.isRedirectRequired() is false the system will executes this
request. |
String |
getCompleteUrl(OAuth2Accessor accessor)
Url to send redirects to.
|
String |
getGrantType() |
boolean |
isAuthorizationEndpointResponse() |
boolean |
isRedirectRequired() |
boolean |
isTokenEndpointResponse() |
@Inject public ClientCredentialsGrantTypeHandler(List<ClientAuthenticationHandler> clientAuthenticationHandlers)
public HttpRequest getAuthorizationRequest(OAuth2Accessor accessor, String completeAuthorizationUrl) throws OAuth2RequestException
GrantRequestHandlerGrantRequestHandler.isRedirectRequired() is false the system will executes this
request.getAuthorizationRequest in interface GrantRequestHandlerOAuth2RequestExceptionpublic String getCompleteUrl(OAuth2Accessor accessor) throws OAuth2RequestException
GrantRequestHandlergetCompleteUrl in interface GrantRequestHandlerOAuth2RequestExceptionpublic String getGrantType()
getGrantType in interface GrantRequestHandlerpublic boolean isAuthorizationEndpointResponse()
isAuthorizationEndpointResponse in interface GrantRequestHandlerpublic boolean isRedirectRequired()
isRedirectRequired in interface GrantRequestHandlerGrantRequestHandler.getCompleteUrl(OAuth2Accessor)public boolean isTokenEndpointResponse()
isTokenEndpointResponse in interface GrantRequestHandlerCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.