public class OAuthConfiguration<C extends IndirectClient,S extends com.github.scribejava.core.oauth.OAuthService<?>,T extends com.github.scribejava.core.model.Token> extends InitializableWebObject
Modifier and Type | Field and Description |
---|---|
static String |
OAUTH_TOKEN |
static String |
RESPONSE_TYPE_CODE |
protected S |
service |
Constructor and Description |
---|
OAuthConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected com.github.scribejava.core.model.OAuthConfig |
buildOAuthConfig(WebContext context,
String state) |
S |
buildService(WebContext context,
String state)
Build an OAuth service from the web context and with a state.
|
com.github.scribejava.core.builder.api.BaseApi<S> |
getApi() |
C |
getClient() |
int |
getConnectTimeout() |
Function<WebContext,Boolean> |
getHasBeenCancelledFactory() |
String |
getKey() |
OAuthProfileDefinition |
getProfileDefinition() |
int |
getReadTimeout() |
String |
getResponseType() |
String |
getScope() |
String |
getSecret() |
S |
getService() |
protected void |
internalInit(WebContext context)
Internal initialization of the object.
|
boolean |
isHasGrantType() |
boolean |
isTokenAsHeader() |
void |
setApi(com.github.scribejava.core.builder.api.BaseApi<S> api) |
void |
setClient(C client) |
void |
setConnectTimeout(int connectTimeout) |
void |
setHasBeenCancelledFactory(Function<WebContext,Boolean> hasBeenCancelledFactory) |
void |
setHasGrantType(boolean hasGrantType) |
void |
setKey(String key) |
void |
setProfileDefinition(OAuthProfileDefinition profileDefinition) |
void |
setReadTimeout(int readTimeout) |
void |
setResponseType(String responseType) |
void |
setScope(String scope) |
void |
setSecret(String secret) |
void |
setTokenAsHeader(boolean tokenAsHeader) |
String |
toString() |
init, reinit
public static final String OAUTH_TOKEN
public static final String RESPONSE_TYPE_CODE
protected S extends com.github.scribejava.core.oauth.OAuthService<?> service
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextpublic S buildService(WebContext context, String state)
context
- the web contextstate
- a given stateprotected com.github.scribejava.core.model.OAuthConfig buildOAuthConfig(WebContext context, String state)
public S getService()
public C getClient()
public void setClient(C client)
public String getKey()
public void setKey(String key)
public String getSecret()
public void setSecret(String secret)
public boolean isTokenAsHeader()
public void setTokenAsHeader(boolean tokenAsHeader)
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getReadTimeout()
public void setReadTimeout(int readTimeout)
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 boolean isHasGrantType()
public void setHasGrantType(boolean hasGrantType)
public Function<WebContext,Boolean> getHasBeenCancelledFactory()
public void setHasBeenCancelledFactory(Function<WebContext,Boolean> hasBeenCancelledFactory)
public OAuthProfileDefinition getProfileDefinition()
public void setProfileDefinition(OAuthProfileDefinition profileDefinition)
Copyright © 2017. All rights reserved.