Package org.pac4j.oauth.config
Class OAuthConfiguration
java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.client.config.BaseClientConfiguration
org.pac4j.oauth.config.OAuthConfiguration
- Direct Known Subclasses:
OAuth10Configuration
,OAuth20Configuration
public abstract class OAuthConfiguration
extends org.pac4j.core.client.config.BaseClientConfiguration
The base OAuth configuration.
- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
Field Summary
Modifier and TypeFieldDescriptionprotected Object
protected HasBeenCancelledFactory
protected com.github.scribejava.core.httpclient.HttpClientConfig
protected String
static final String
ConstantOAUTH_TOKEN="oauth_token"
protected OAuthProfileDefinition
static final String
ConstantRESPONSE_TYPE_CODE="code"
protected String
protected String
protected String
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract com.github.scribejava.core.oauth.OAuthService
buildService
(org.pac4j.core.context.WebContext context, org.pac4j.core.client.IndirectClient client) buildService.protected void
internalInit
(boolean forceReinit) Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getInitialized, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize, toString
-
Field Details
-
OAUTH_TOKEN
ConstantOAUTH_TOKEN="oauth_token"
- See Also:
-
RESPONSE_TYPE_CODE
ConstantRESPONSE_TYPE_CODE="code"
- See Also:
-
key
-
secret
-
tokenAsHeader
protected boolean tokenAsHeader -
responseType
-
scope
-
hasBeenCancelledFactory
-
profileDefinition
-
httpClientConfig
protected com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig -
api
-
-
Constructor Details
-
OAuthConfiguration
public OAuthConfiguration()
-
-
Method Details
-
internalInit
protected void internalInit(boolean forceReinit) - Specified by:
internalInit
in classorg.pac4j.core.util.InitializableObject
-
buildService
public abstract com.github.scribejava.core.oauth.OAuthService buildService(org.pac4j.core.context.WebContext context, org.pac4j.core.client.IndirectClient client) buildService.
- Parameters:
context
- aWebContext
objectclient
- aIndirectClient
object- Returns:
- a
OAuthService
object
-