Package com.plannaplan.api
Class UsosOauth1Service
java.lang.Object
com.github.scribejava.core.builder.api.DefaultApi10a
com.plannaplan.api.UsosOauth1Service
public class UsosOauth1Service
extends com.github.scribejava.core.builder.api.DefaultApi10a
singleton class to sign usos api requests with oauth
-
Constructor Summary
Constructors Modifier Constructor Description protected
UsosOauth1Service()
protected
UsosOauth1Service(java.lang.String... scopes)
-
Method Summary
Modifier and Type Method Description java.lang.String
getAccessTokenEndpoint()
protected java.lang.String
getAuthorizationBaseUrl()
java.lang.String
getRequestTokenEndpoint()
static UsosOauth1Service
instance()
static UsosOauth1Service
instance(java.lang.String... scopes)
get instance withj scopesMethods inherited from class com.github.scribejava.core.builder.api.DefaultApi10a
createService, getAccessTokenExtractor, getAccessTokenVerb, getAuthorizationUrl, getBaseStringExtractor, getHeaderExtractor, getRequestTokenExtractor, getRequestTokenVerb, getSignatureService, getSignatureType, getTimestampService, isEmptyOAuthTokenParamIsRequired
-
Constructor Details
-
UsosOauth1Service
protected UsosOauth1Service() -
UsosOauth1Service
protected UsosOauth1Service(java.lang.String... scopes)
-
-
Method Details
-
instance
-
instance
get instance withj scopes- Parameters:
scopes
- to get instance with- Returns:
- UsosOauth1Service instance
-
getRequestTokenEndpoint
public java.lang.String getRequestTokenEndpoint()- Specified by:
getRequestTokenEndpoint
in classcom.github.scribejava.core.builder.api.DefaultApi10a
-
getAccessTokenEndpoint
public java.lang.String getAccessTokenEndpoint()- Specified by:
getAccessTokenEndpoint
in classcom.github.scribejava.core.builder.api.DefaultApi10a
-
getAuthorizationBaseUrl
protected java.lang.String getAuthorizationBaseUrl()- Specified by:
getAuthorizationBaseUrl
in classcom.github.scribejava.core.builder.api.DefaultApi10a
-