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
configuration
ATTEMPTED_AUTHENTICATION_SUFFIX, callbackUrl, callbackUrlResolver, urlResolver
logger
Constructor and Description |
---|
VkClient() |
VkClient(String key,
String secret) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientInit()
Initialize the client.
|
VkConfiguration |
getConfiguration() |
String |
getFields() |
String |
getScope() |
void |
setFields(String fields) |
void |
setScope(String scope) |
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 void clientInit()
IndirectClient
clientInit
in class OAuth20Client<VkProfile>
public VkConfiguration getConfiguration()
getConfiguration
in class OAuth20Client<VkProfile>
public String getScope()
public void setScope(String scope)
public String getFields()
public void setFields(String fields)
Copyright © 2019. All rights reserved.