public class WeiboClient extends OAuth20Client
This class is the OAuth client to authenticate users in Weibo using OAuth protocol version 2.0.
The scope is by default : WeiboClient.WeiboScope.EMAIL, but it can also but set to : WeiboClient.WeiboScope.ALL
or WeiboClient.WeiboScope.EMAIL.
It returns a WeiboProfile.
More information at http://open.weibo.com/wiki/Oauth2/access_token/
| Modifier and Type | Class and Description |
|---|---|
static class |
WeiboClient.WeiboScope
WeiboScope.
|
| Modifier and Type | Field and Description |
|---|---|
protected WeiboClient.WeiboScope |
scope |
protected String |
scopeValue |
configurationATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolverlogger| Constructor and Description |
|---|
WeiboClient() |
WeiboClient(String key,
String secret) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit() |
WeiboClient.WeiboScope |
getScope() |
void |
setScope(WeiboClient.WeiboScope scope) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toStringcomputeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectionActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectionActionBuilder, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectionActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreatorinitprotected WeiboClient.WeiboScope scope
protected String scopeValue
protected void clientInit()
clientInit in class OAuth20Clientpublic WeiboClient.WeiboScope getScope()
public void setScope(WeiboClient.WeiboScope scope)
Copyright © 2019. All rights reserved.