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()
Deprecated.
|
java.util.function.Function<WebContext,Boolean> |
getHasBeenCancelledFactory() |
String |
getKey() |
OAuthProfileDefinition |
getProfileDefinition() |
int |
getReadTimeout()
Deprecated.
|
String |
getResponseType() |
String |
getScope() |
String |
getSecret() |
S |
getService() |
protected void |
internalInit(WebContext context) |
boolean |
isHasGrantType() |
boolean |
isTokenAsHeader() |
void |
setApi(com.github.scribejava.core.builder.api.BaseApi<S> api) |
void |
setClient(C client) |
void |
setConnectTimeout(int connectTimeout)
Deprecated.
|
void |
setHasBeenCancelledFactory(java.util.function.Function<WebContext,Boolean> hasBeenCancelledFactory) |
void |
setHasGrantType(boolean hasGrantType) |
void |
setKey(String key) |
void |
setProfileDefinition(OAuthProfileDefinition profileDefinition) |
void |
setReadTimeout(int readTimeout)
Deprecated.
|
void |
setResponseType(String responseType) |
void |
setScope(String scope) |
void |
setSecret(String secret) |
void |
setTokenAsHeader(boolean tokenAsHeader) |
String |
toString() |
init, reinitpublic 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)
internalInit in class InitializableWebObjectpublic 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)
@Deprecated public int getConnectTimeout()
@Deprecated public void setConnectTimeout(int connectTimeout)
@Deprecated public int getReadTimeout()
@Deprecated 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 java.util.function.Function<WebContext,Boolean> getHasBeenCancelledFactory()
public void setHasBeenCancelledFactory(java.util.function.Function<WebContext,Boolean> hasBeenCancelledFactory)
public OAuthProfileDefinition getProfileDefinition()
public void setProfileDefinition(OAuthProfileDefinition profileDefinition)
Copyright © 2017. All Rights Reserved.