public abstract class DefaultApi20 extends Object implements BaseApi<OAuth20Service>
| Constructor and Description |
|---|
DefaultApi20() |
| Modifier and Type | Method and Description |
|---|---|
OAuth20Service |
createService(OAuthConfig config)
|
OAuth20Service |
createService(String apiKey,
String apiSecret,
String callback,
String scope,
OutputStream debugStream,
String state,
String responseType,
String userAgent,
HttpClientConfig httpClientConfig,
HttpClient httpClient) |
abstract String |
getAccessTokenEndpoint()
Returns the URL that receives the access token requests.
|
TokenExtractor<OAuth2AccessToken> |
getAccessTokenExtractor()
Returns the access token extractor.
|
Verb |
getAccessTokenVerb()
Returns the verb for the access token endpoint (defaults to POST)
|
protected abstract String |
getAuthorizationBaseUrl() |
String |
getAuthorizationUrl(OAuthConfig config,
Map<String,String> additionalParams)
|
String |
getAuthorizationUrl(String responseType,
String apiKey,
String callback,
String scope,
String state,
Map<String,String> additionalParams)
Returns the URL where you should redirect your users to authenticate your application.
|
ClientAuthenticationType |
getClientAuthenticationType() |
String |
getRefreshTokenEndpoint() |
String |
getRevokeTokenEndpoint()
As stated in RFC 7009 OAuth 2.0 Token Revocation
|
OAuth2SignatureType |
getSignatureType() |
public TokenExtractor<OAuth2AccessToken> getAccessTokenExtractor()
public Verb getAccessTokenVerb()
public abstract String getAccessTokenEndpoint()
public String getRefreshTokenEndpoint()
public String getRevokeTokenEndpoint()
protected abstract String getAuthorizationBaseUrl()
@Deprecated public String getAuthorizationUrl(OAuthConfig config, Map<String,String> additionalParams)
public String getAuthorizationUrl(String responseType, String apiKey, String callback, String scope, String state, Map<String,String> additionalParams)
additionalParams - any additional GET params to add to the URL@Deprecated public OAuth20Service createService(OAuthConfig config)
createService in interface BaseApi<OAuth20Service>public OAuth20Service createService(String apiKey, String apiSecret, String callback, String scope, OutputStream debugStream, String state, String responseType, String userAgent, HttpClientConfig httpClientConfig, HttpClient httpClient)
createService in interface BaseApi<OAuth20Service>public OAuth2SignatureType getSignatureType()
public ClientAuthenticationType getClientAuthenticationType()
Copyright © 2018. All rights reserved.