Package org.pac4j.oauth.config
Class OAuth10Configuration
java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.client.config.BaseClientConfiguration
org.pac4j.oauth.config.OAuthConfiguration
org.pac4j.oauth.config.OAuth10Configuration
The OAuh 1.0 configuration.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
Field Summary
FieldsFields inherited from class org.pac4j.oauth.config.OAuthConfiguration
api, hasBeenCancelledFactory, httpClientConfig, key, OAUTH_TOKEN, profileDefinition, RESPONSE_TYPE_CODE, responseType, scope, secret, tokenAsHeader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.github.scribejava.core.oauth.OAuthServicebuildService(org.pac4j.core.context.WebContext context, org.pac4j.core.client.IndirectClient client) Build an OAuth service from the web context.getRequestTokenSessionAttributeName(String clientName) Return the name of the attribute storing in session the request token.toString()Methods inherited from class org.pac4j.oauth.config.OAuthConfiguration
getApi, getHasBeenCancelledFactory, getHttpClientConfig, getKey, getProfileDefinition, getResponseType, getScope, getSecret, internalInit, isTokenAsHeader, setApi, setHasBeenCancelledFactory, setHttpClientConfig, setKey, setProfileDefinition, setResponseType, setScope, setSecret, setTokenAsHeaderMethods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
-
Field Details
-
OAUTH_VERIFIER
- See Also:
-
REQUEST_TOKEN
- See Also:
-
-
Constructor Details
-
OAuth10Configuration
public OAuth10Configuration()
-
-
Method Details
-
buildService
public com.github.scribejava.core.oauth.OAuthService buildService(org.pac4j.core.context.WebContext context, org.pac4j.core.client.IndirectClient client) Build an OAuth service from the web context.- Specified by:
buildServicein classOAuthConfiguration- Parameters:
context- the web contextclient- the client- Returns:
- the OAuth service
-
getRequestTokenSessionAttributeName
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
-
toString
-