Package org.pac4j.oauth.client
Class QQClient
-
- All Implemented Interfaces:
Client<OAuth20Credentials>
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 List<QQClient.QQScope>scopes-
Fields inherited from class org.pac4j.oauth.client.OAuth20Client
configuration
-
Fields inherited from class org.pac4j.core.client.IndirectClient
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolver
-
Fields inherited from class org.pac4j.core.client.BaseClient
logger
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddScope(QQClient.QQScope scopes)protected voidclientInit()List<QQClient.QQScope>getScopes()voidsetScopes(List<QQClient.QQScope> scopes)-
Methods inherited from class org.pac4j.oauth.client.OAuth20Client
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toString
-
Methods inherited from class org.pac4j.core.client.IndirectClient
computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getNonceSessionAttributeName, getRedirectionAction, getRedirectionActionBuilder, getStateSessionAttributeName, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolver
-
Methods inherited from class org.pac4j.core.client.BaseClient
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, renewUserProfile, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator
-
Methods inherited from class org.pac4j.core.util.InitializableObject
init, isInitialized
-
-
-
-
Field Detail
-
scopes
protected List<QQClient.QQScope> scopes
-
-
Method Detail
-
clientInit
protected void clientInit()
- Overrides:
clientInitin classOAuth20Client
-
getScopes
public List<QQClient.QQScope> getScopes()
-
setScopes
public void setScopes(List<QQClient.QQScope> scopes)
-
addScope
public void addScope(QQClient.QQScope scopes)
-
-