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
FieldsModifier and TypeFieldDescriptionprotected Objectprotected HasBeenCancelledFactoryprotected com.github.scribejava.core.httpclient.HttpClientConfigprotected Stringstatic final StringConstantOAUTH_TOKEN="oauth_token"protected OAuthProfileDefinitionstatic final StringConstantRESPONSE_TYPE_CODE="code"protected Stringprotected Stringprotected Stringprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract com.github.scribejava.core.oauth.OAuthServicebuildService(org.pac4j.core.context.WebContext context, org.pac4j.core.client.IndirectClient client) buildService.protected voidinternalInit(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:
internalInitin 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- aWebContextobjectclient- aIndirectClientobject- Returns:
- a
OAuthServiceobject
-