Package org.pac4j.oauth.config
Class OAuth10Configuration
- java.lang.Object
-
- org.pac4j.core.util.InitializableObject
-
- org.pac4j.oauth.config.OAuthConfiguration<com.github.scribejava.core.oauth.OAuth10aService,com.github.scribejava.core.model.OAuth1AccessToken>
-
- org.pac4j.oauth.config.OAuth10Configuration
-
public class OAuth10Configuration extends OAuthConfiguration<com.github.scribejava.core.oauth.OAuth10aService,com.github.scribejava.core.model.OAuth1AccessToken>
The OAuh 1.0 configuration.- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
-
Field Summary
Fields Modifier and Type Field Description static String
OAUTH_VERIFIER
static String
REQUEST_TOKEN
-
Fields inherited from class org.pac4j.oauth.config.OAuthConfiguration
hasBeenCancelledFactory, httpClientConfig, key, OAUTH_TOKEN, profileDefinition, RESPONSE_TYPE_CODE, responseType, scope, secret, tokenAsHeader
-
-
Constructor Summary
Constructors Constructor Description OAuth10Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.scribejava.core.oauth.OAuth10aService
buildService(WebContext context, IndirectClient client)
Build an OAuth service from the web context.com.github.scribejava.core.builder.api.DefaultApi10a
getApi()
String
getRequestTokenSessionAttributeName(String clientName)
Return the name of the attribute storing in session the request token.protected void
internalInit()
void
setApi(com.github.scribejava.core.builder.api.DefaultApi10a api)
String
toString()
-
Methods inherited from class org.pac4j.oauth.config.OAuthConfiguration
getHasBeenCancelledFactory, getHttpClientConfig, getKey, getProfileDefinition, getResponseType, getScope, getSecret, isTokenAsHeader, setHasBeenCancelledFactory, setHttpClientConfig, setKey, setProfileDefinition, setResponseType, setScope, setSecret, setTokenAsHeader
-
Methods inherited from class org.pac4j.core.util.InitializableObject
init, isInitialized
-
-
-
-
Field Detail
-
OAUTH_VERIFIER
public static final String OAUTH_VERIFIER
- See Also:
- Constant Field Values
-
REQUEST_TOKEN
public static final String REQUEST_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
internalInit
protected void internalInit()
- Overrides:
internalInit
in classOAuthConfiguration<com.github.scribejava.core.oauth.OAuth10aService,com.github.scribejava.core.model.OAuth1AccessToken>
-
buildService
public com.github.scribejava.core.oauth.OAuth10aService buildService(WebContext context, IndirectClient client)
Build an OAuth service from the web context.- Specified by:
buildService
in classOAuthConfiguration<com.github.scribejava.core.oauth.OAuth10aService,com.github.scribejava.core.model.OAuth1AccessToken>
- Parameters:
context
- the web contextclient
- the client- Returns:
- the OAuth service
-
getRequestTokenSessionAttributeName
public String getRequestTokenSessionAttributeName(String clientName)
Return the name of the attribute storing in session the request token.- Parameters:
clientName
- the client name- Returns:
- the name of the attribute storing in session the request token
-
getApi
public com.github.scribejava.core.builder.api.DefaultApi10a getApi()
-
setApi
public void setApi(com.github.scribejava.core.builder.api.DefaultApi10a api)
-
-