public abstract class DefaultApi20 extends Object implements BaseApi<OAuth20Service>
| Constructor and Description |
|---|
DefaultApi20() |
| Modifier and Type | Method and Description |
|---|---|
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(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.
|
ClientAuthentication |
getClientAuthentication() |
ClientAuthenticationType |
getClientAuthenticationType()
Deprecated.
|
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()
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 URLpublic 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 ClientAuthentication getClientAuthentication()
@Deprecated public ClientAuthenticationType getClientAuthenticationType()
getClientAuthentication()Copyright © 2018. All rights reserved.