Package com.github.scribejava.apis
Class StackExchangeApi
- java.lang.Object
-
- com.github.scribejava.core.builder.api.DefaultApi20
-
- com.github.scribejava.apis.StackExchangeApi
-
public class StackExchangeApi extends DefaultApi20
Stack Exchange authentication via OAuth 2.0 (stackoverflow.com, askubuntu.com, etc.).
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StackExchangeApi()
-
Method Summary
Modifier and Type Method Description String
getAccessTokenEndpoint()
TokenExtractor<OAuth2AccessToken>
getAccessTokenExtractor()
protected String
getAuthorizationBaseUrl()
BearerSignature
getBearerSignature()
static StackExchangeApi
instance()
-
Methods inherited from class com.github.scribejava.core.builder.api.DefaultApi20
createService, createService, getAccessTokenVerb, getAuthorizationUrl, getClientAuthentication, getRefreshTokenEndpoint, getRevokeTokenEndpoint
-
-
-
-
Method Detail
-
instance
public static StackExchangeApi instance()
-
getAccessTokenEndpoint
public String getAccessTokenEndpoint()
- Specified by:
getAccessTokenEndpoint
in classDefaultApi20
-
getAuthorizationBaseUrl
protected String getAuthorizationBaseUrl()
- Specified by:
getAuthorizationBaseUrl
in classDefaultApi20
-
getAccessTokenExtractor
public TokenExtractor<OAuth2AccessToken> getAccessTokenExtractor()
- Overrides:
getAccessTokenExtractor
in classDefaultApi20
-
getBearerSignature
public BearerSignature getBearerSignature()
- Overrides:
getBearerSignature
in classDefaultApi20
-
-