public class WeiboClient extends OAuth20Client<WeiboProfile>
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 |
configuration
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolver
logger
Constructor and Description |
---|
WeiboClient() |
WeiboClient(String key,
String secret) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientInit()
Initialize the client.
|
WeiboClient.WeiboScope |
getScope() |
void |
setScope(WeiboClient.WeiboScope scope) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toString
computeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, newDefaultCallbackUrlResolver, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolver
addAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getCustomProperties, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setCustomProperties, setName, setProfileCreator
init
protected WeiboClient.WeiboScope scope
protected String scopeValue
protected void clientInit()
IndirectClient
clientInit
in class OAuth20Client<WeiboProfile>
public WeiboClient.WeiboScope getScope()
public void setScope(WeiboClient.WeiboScope scope)
Copyright © 2019. All rights reserved.