Package org.pac4j.oauth.config
Class OAuthConfiguration<S extends com.github.scribejava.core.oauth.OAuthService,T extends com.github.scribejava.core.model.Token>
- java.lang.Object
-
- org.pac4j.core.util.InitializableObject
-
- org.pac4j.core.client.config.BaseClientConfiguration
-
- org.pac4j.oauth.config.OAuthConfiguration<S,T>
-
- Direct Known Subclasses:
OAuth10Configuration,OAuth20Configuration
public abstract class OAuthConfiguration<S extends com.github.scribejava.core.oauth.OAuthService,T extends com.github.scribejava.core.model.Token> extends BaseClientConfiguration
The base OAuth configuration.- Since:
- 2.0.0
- Author:
- Jerome Leleu
-
-
Field Summary
Fields Modifier and Type Field Description protected HasBeenCancelledFactoryhasBeenCancelledFactoryprotected com.github.scribejava.core.httpclient.HttpClientConfighttpClientConfigprotected Stringkeystatic StringOAUTH_TOKENprotected OAuthProfileDefinitionprofileDefinitionstatic StringRESPONSE_TYPE_CODEprotected StringresponseTypeprotected Stringscopeprotected Stringsecretprotected booleantokenAsHeader
-
Constructor Summary
Constructors Constructor Description OAuthConfiguration()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SbuildService(WebContext context, IndirectClient client)HasBeenCancelledFactorygetHasBeenCancelledFactory()com.github.scribejava.core.httpclient.HttpClientConfiggetHttpClientConfig()StringgetKey()OAuthProfileDefinitiongetProfileDefinition()StringgetResponseType()StringgetScope()StringgetSecret()protected voidinternalInit()booleanisTokenAsHeader()voidsetHasBeenCancelledFactory(HasBeenCancelledFactory hasBeenCancelledFactory)voidsetHttpClientConfig(com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig)voidsetKey(String key)voidsetProfileDefinition(OAuthProfileDefinition profileDefinition)voidsetResponseType(String responseType)voidsetScope(String scope)voidsetSecret(String secret)voidsetTokenAsHeader(boolean tokenAsHeader)-
Methods inherited from class org.pac4j.core.util.InitializableObject
init, isInitialized
-
-
-
-
Field Detail
-
OAUTH_TOKEN
public static final String OAUTH_TOKEN
- See Also:
- Constant Field Values
-
RESPONSE_TYPE_CODE
public static final String RESPONSE_TYPE_CODE
- See Also:
- Constant Field Values
-
key
protected String key
-
secret
protected String secret
-
tokenAsHeader
protected boolean tokenAsHeader
-
responseType
protected String responseType
-
scope
protected String scope
-
hasBeenCancelledFactory
protected HasBeenCancelledFactory hasBeenCancelledFactory
-
profileDefinition
protected OAuthProfileDefinition profileDefinition
-
httpClientConfig
protected com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig
-
-
Method Detail
-
internalInit
protected void internalInit()
- Specified by:
internalInitin classInitializableObject
-
buildService
public abstract S buildService(WebContext context, IndirectClient client)
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getSecret
public String getSecret()
-
setSecret
public void setSecret(String secret)
-
isTokenAsHeader
public boolean isTokenAsHeader()
-
setTokenAsHeader
public void setTokenAsHeader(boolean tokenAsHeader)
-
getResponseType
public String getResponseType()
-
setResponseType
public void setResponseType(String responseType)
-
getScope
public String getScope()
-
setScope
public void setScope(String scope)
-
getHasBeenCancelledFactory
public HasBeenCancelledFactory getHasBeenCancelledFactory()
-
setHasBeenCancelledFactory
public void setHasBeenCancelledFactory(HasBeenCancelledFactory hasBeenCancelledFactory)
-
getProfileDefinition
public OAuthProfileDefinition getProfileDefinition()
-
setProfileDefinition
public void setProfileDefinition(OAuthProfileDefinition profileDefinition)
-
getHttpClientConfig
public com.github.scribejava.core.httpclient.HttpClientConfig getHttpClientConfig()
-
setHttpClientConfig
public void setHttpClientConfig(com.github.scribejava.core.httpclient.HttpClientConfig httpClientConfig)
-
-