Class VkProfileDefinition


  • public class VkProfileDefinition
    extends OAuthProfileDefinition
    This class is the Vk profile definition.
    Since:
    1.5
    Author:
    indvdum (gotoindvdum[at]gmail[dot]com)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String BASE_URL  
      static java.lang.String BIRTH_DATE  
      static java.lang.String CAN_POST  
      static java.lang.String CAN_SEE_ALL_POST  
      static java.lang.String CAN_SEE_AUDIO  
      static java.lang.String CAN_WRITE_PRIVATE_MESSAGE  
      static java.lang.String COMMON_COUNT  
      static java.lang.String DOMAIN  
      static java.lang.String HAS_MOBILE  
      static java.lang.String HOME_PHONE  
      static java.lang.String LAST_NAME  
      static java.lang.String MOBILE_PHONE  
      static java.lang.String ONLINE  
      static java.lang.String ONLINE_MOBILE  
      static java.lang.String PHOTO_100  
      static java.lang.String PHOTO_200  
      static java.lang.String PHOTO_200_ORIG  
      static java.lang.String PHOTO_400_ORIG  
      static java.lang.String PHOTO_50  
      static java.lang.String PHOTO_MAX  
      static java.lang.String PHOTO_MAX_ORIG  
      static java.lang.String RELATION  
      static java.lang.String SEX  
      static java.lang.String SITE  
      static java.lang.String SKYPE  
      static java.lang.String STATUS  
      • Fields inherited from class org.pac4j.core.profile.definition.CommonProfileDefinition

        DISPLAY_NAME, EMAIL, FAMILY_NAME, FIRST_NAME, GENDER, LOCALE, LOCATION, PICTURE_URL, PROFILE_URL
      • Fields inherited from class org.pac4j.core.profile.definition.ProfileDefinition

        logger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      VkProfile extractUserProfile​(java.lang.String body)
      Extract the user profile from the response (JSON, XML...) of the profile url.
      java.lang.String getProfileUrl​(com.github.scribejava.core.model.Token accessToken, OAuthConfiguration configuration)
      Retrieve the url of the profile of the authenticated user for the provider.
      • Methods inherited from class org.pac4j.core.profile.definition.CommonProfileDefinition

        configurePrimaryAttributes
      • Methods inherited from class org.pac4j.core.profile.definition.ProfileDefinition

        convertAndAdd, convertAndAdd, getConverters, getParameter, getPrimaryAttributes, getProfileId, getSecondaryAttributes, isRestoreProfileFromTypedId, newProfile, primary, secondary, setProfileFactory, setProfileId, setRestoreProfileFromTypedId
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait