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
-
public class OAuth10Configuration extends OAuthConfiguration
The OAuh 1.0 configuration.- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OAUTH_VERIFIER
static java.lang.String
REQUEST_TOKEN
-
Fields 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 Constructor Description OAuth10Configuration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.java.lang.String
getRequestTokenSessionAttributeName(java.lang.String clientName)
Return the name of the attribute storing in session the request token.java.lang.String
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, setTokenAsHeader
-
Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
-
-
-
-
Field Detail
-
OAUTH_VERIFIER
public static final java.lang.String OAUTH_VERIFIER
- See Also:
- Constant Field Values
-
REQUEST_TOKEN
public static final java.lang.String REQUEST_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
buildService
in classOAuthConfiguration
- Parameters:
context
- the web contextclient
- the client- Returns:
- the OAuth service
-
getRequestTokenSessionAttributeName
public java.lang.String getRequestTokenSessionAttributeName(java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-