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 Stringprotected OAuthProfileDefinitionstatic final Stringprotected 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) getApi()com.github.scribejava.core.httpclient.HttpClientConfiggetKey()getScope()protected voidinternalInit(boolean forceReinit) booleanvoidvoidsetHasBeenCancelledFactory(HasBeenCancelledFactory hasBeenCancelledFactory) voidsetHttpClientConfig(com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig) voidvoidsetProfileDefinition(OAuthProfileDefinition profileDefinition) voidsetResponseType(String responseType) voidvoidvoidsetTokenAsHeader(boolean tokenAsHeader) Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize
-
Field Details
-
OAUTH_TOKEN
- See Also:
-
RESPONSE_TYPE_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) -
getKey
-
setKey
-
getSecret
-
setSecret
-
isTokenAsHeader
public boolean isTokenAsHeader() -
setTokenAsHeader
public void setTokenAsHeader(boolean tokenAsHeader) -
getResponseType
-
setResponseType
-
getScope
-
setScope
-
getHasBeenCancelledFactory
-
setHasBeenCancelledFactory
-
getProfileDefinition
-
setProfileDefinition
-
getHttpClientConfig
public com.github.scribejava.core.httpclient.HttpClientConfig getHttpClientConfig() -
setHttpClientConfig
public void setHttpClientConfig(com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig) -
getApi
-
setApi
-