public class OAuth20Configuration extends OAuthConfiguration<com.github.scribejava.core.oauth.OAuth20Service,com.github.scribejava.core.model.OAuth2AccessToken>
Modifier and Type | Field and Description |
---|---|
static String |
OAUTH_CODE |
static String |
STATE_REQUEST_PARAMETER |
OAUTH_TOKEN, RESPONSE_TYPE_CODE
Constructor and Description |
---|
OAuth20Configuration() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getCustomParams() |
String |
getStateData()
Deprecated.
|
StateGenerator |
getStateGenerator() |
String |
getStateSessionAttributeName(String clientName)
Return the name of the attribute storing the state in session.
|
boolean |
isWithState() |
void |
setCustomParams(Map<String,String> customParams) |
void |
setStateData(String stateData)
Deprecated.
|
void |
setStateGenerator(StateGenerator stateGenerator) |
void |
setWithState(boolean withState) |
buildService, getApi, getHasBeenCancelledFactory, getHttpClientConfig, getKey, getProfileDefinition, getResponseType, getScope, getSecret, internalInit, isTokenAsHeader, setApi, setHasBeenCancelledFactory, setHttpClientConfig, setKey, setProfileDefinition, setResponseType, setScope, setSecret, setTokenAsHeader, toString
init
public static final String OAUTH_CODE
public static final String STATE_REQUEST_PARAMETER
public String getStateSessionAttributeName(String clientName)
clientName
- the client namepublic boolean isWithState()
public void setWithState(boolean withState)
@Deprecated public String getStateData()
@Deprecated public void setStateData(String stateData)
public StateGenerator getStateGenerator()
public void setStateGenerator(StateGenerator stateGenerator)
Copyright © 2019. All rights reserved.