public class VkClient extends OAuth20Client<VkProfile>
This class is the OAuth client to authenticate users in Vk.
The scope can be defined to require specific permissions from the user
by using the setScope(String) method. By default, the scope
is : PERMISSIONS.
It returns a VkProfile.
More information at https://vk.com/dev/users.get
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FIELDS |
static String |
DEFAULT_SCOPE |
protected String |
fields |
protected String |
scope |
configurationATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, urlResolverlogger| Constructor and Description |
|---|
VkClient() |
VkClient(String key,
String secret) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientInit(WebContext context)
Initialize the client.
|
String |
getFields() |
String |
getScope() |
void |
setFields(String fields) |
void |
setScope(String scope) |
getConfiguration, getKey, getSecret, setConfiguration, setKey, setSecret, toStringcomputeFinalCallbackUrl, defaultLogoutActionBuilder, defaultRedirectActionBuilder, getAjaxRequestResolver, getCallbackUrl, getCallbackUrlResolver, getCredentials, getLogoutAction, getLogoutActionBuilder, getRedirectAction, getRedirectActionBuilder, getUrlResolver, internalInit, isIncludeClientNameInCallbackUrl, redirect, setAjaxRequestResolver, setCallbackUrl, setCallbackUrlResolver, setIncludeClientNameInCallbackUrl, setLogoutActionBuilder, setRedirectActionBuilder, setUrlResolveraddAuthorizationGenerator, addAuthorizationGenerators, defaultAuthenticator, defaultCredentialsExtractor, defaultProfileCreator, getAuthenticator, getAuthorizationGenerators, getCredentialsExtractor, getName, getProfileCreator, getUserProfile, notifySessionRenewal, retrieveCredentials, retrieveUserProfile, setAuthenticator, setAuthorizationGenerator, setAuthorizationGenerators, setAuthorizationGenerators, setCredentialsExtractor, setName, setProfileCreatorinit, reinitpublic static final String DEFAULT_FIELDS
protected String fields
public static final String DEFAULT_SCOPE
protected String scope
protected void clientInit(WebContext context)
IndirectClientclientInit in class OAuth20Client<VkProfile>context - the web contextpublic String getScope()
public void setScope(String scope)
public String getFields()
public void setFields(String fields)
Copyright © 2017. All rights reserved.