Package org.pac4j.oauth.client
Class QQClient
- java.lang.Object
-
- org.pac4j.core.util.InitializableObject
-
- org.pac4j.core.client.BaseClient
-
- org.pac4j.core.client.IndirectClient
-
- org.pac4j.oauth.client.OAuth20Client
-
- org.pac4j.oauth.client.QQClient
-
- All Implemented Interfaces:
org.pac4j.core.client.Client
public class QQClient extends OAuth20Client
This class is the OAuth client to authenticate users in Tencent QQ Connect.
It returns a
QQProfile.More information at http://wiki.connect.qq.com/%E4%BD%BF%E7%94%A8authorization_code%E8%8E%B7%E5%8F%96access_token
- Since:
- 3.1.0
- Author:
- zhangzhenli
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classQQClient.QQScope
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<QQClient.QQScope>scopes-
Fields inherited from class org.pac4j.oauth.client.OAuth20Client
configuration
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddScope(QQClient.QQScope scopes)java.util.List<QQClient.QQScope>getScopes()protected voidinternalInit(boolean forceReinit)voidsetScopes(java.util.List<QQClient.QQScope> scopes)-
Methods inherited from class org.pac4j.oauth.client.OAuth20Client
beforeInternalInit, getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toString
-
Methods inherited from class org.pac4j.core.client.IndirectClient
afterInternalInit, computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCodeVerifierSessionAttributeName, getCredentials, getLogoutAction, getLogoutActionBuilder, getNonceSessionAttributeName, getRedirectionAction, getRedirectionActionBuilder, getStateSessionAttributeName, getUrlResolver, isCheckAuthenticationAttempt, newDefaultCallbackUrlResolver, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setCheckAuthenticationAttempt, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolver
-
Methods inherited from class org.pac4j.core.client.BaseClient
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getProfileFactoryWhenNotAuthenticated, getSaveProfileInSession, getUserProfile, isMultiProfile, notifySessionRenewal, renewUserProfile, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setMultiProfile, setName, setProfileCreator, setProfileFactoryWhenNotAuthenticated, setSaveProfileInSession
-
-
-
-
Field Detail
-
scopes
protected java.util.List<QQClient.QQScope> scopes
-
-
Method Detail
-
internalInit
protected void internalInit(boolean forceReinit)
- Overrides:
internalInitin classOAuth20Client
-
getScopes
public java.util.List<QQClient.QQScope> getScopes()
-
setScopes
public void setScopes(java.util.List<QQClient.QQScope> scopes)
-
addScope
public void addScope(QQClient.QQScope scopes)
-
-