public class OAuthConfiguration<S extends com.github.scribejava.core.oauth.OAuthService,T extends com.github.scribejava.core.model.Token> extends InitializableObject
Modifier and Type | Field and Description |
---|---|
static String |
OAUTH_TOKEN |
static String |
RESPONSE_TYPE_CODE |
Constructor and Description |
---|
OAuthConfiguration() |
Modifier and Type | Method and Description |
---|---|
S |
buildService(WebContext context,
IndirectClient client,
String state)
Build an OAuth service from the web context and with a state.
|
com.github.scribejava.core.builder.api.BaseApi<S> |
getApi() |
Function<WebContext,Boolean> |
getHasBeenCancelledFactory() |
com.github.scribejava.core.httpclient.HttpClientConfig |
getHttpClientConfig() |
String |
getKey() |
OAuthProfileDefinition |
getProfileDefinition() |
String |
getResponseType() |
String |
getScope() |
String |
getSecret() |
protected void |
internalInit()
Internal initialization of the object.
|
boolean |
isTokenAsHeader() |
void |
setApi(com.github.scribejava.core.builder.api.BaseApi<S> api) |
void |
setHasBeenCancelledFactory(Function<WebContext,Boolean> hasBeenCancelledFactory) |
void |
setHttpClientConfig(com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig) |
void |
setKey(String key) |
void |
setProfileDefinition(OAuthProfileDefinition profileDefinition) |
void |
setResponseType(String responseType) |
void |
setScope(String scope) |
void |
setSecret(String secret) |
void |
setTokenAsHeader(boolean tokenAsHeader) |
String |
toString() |
init
public static final String OAUTH_TOKEN
public static final String RESPONSE_TYPE_CODE
protected void internalInit()
InitializableObject
internalInit
in class InitializableObject
public S buildService(WebContext context, IndirectClient client, String state)
context
- the web contextclient
- the clientstate
- a given statepublic String getKey()
public void setKey(String key)
public String getSecret()
public void setSecret(String secret)
public boolean isTokenAsHeader()
public void setTokenAsHeader(boolean tokenAsHeader)
public String getResponseType()
public void setResponseType(String responseType)
public String getScope()
public void setScope(String scope)
public com.github.scribejava.core.builder.api.BaseApi<S> getApi()
public void setApi(com.github.scribejava.core.builder.api.BaseApi<S> api)
public Function<WebContext,Boolean> getHasBeenCancelledFactory()
public void setHasBeenCancelledFactory(Function<WebContext,Boolean> hasBeenCancelledFactory)
public OAuthProfileDefinition getProfileDefinition()
public void setProfileDefinition(OAuthProfileDefinition profileDefinition)
public com.github.scribejava.core.httpclient.HttpClientConfig getHttpClientConfig()
public void setHttpClientConfig(com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig)
Copyright © 2019. All rights reserved.