public interface GrantRequestHandler
getGrantType() matches a
OAuth2Accessor.getGrantType() it will be invoked to initiate the
grant request.
By default "code" and "client_credentials" are supported.
Only one GrantRequestHandler will be executed (first to match.)| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
getAuthorizationRequest(OAuth2Accessor accessor,
String completeAuthorizationUrl)
If
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() |
HttpRequest getAuthorizationRequest(OAuth2Accessor accessor, String completeAuthorizationUrl) throws OAuth2RequestException
isRedirectRequired() is false the system will executes this
request.accessor - completeAuthorizationUrl - OAuth2RequestExceptionString getCompleteUrl(OAuth2Accessor accessor) throws OAuth2RequestException
accessor - OAuth2RequestExceptionString getGrantType()
boolean isAuthorizationEndpointResponse()
boolean isRedirectRequired()
getCompleteUrl(OAuth2Accessor)boolean isTokenEndpointResponse()
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.