Class StravaProfileDefinition


  • public class StravaProfileDefinition
    extends OAuthProfileDefinition
    This class is the Strava profile definition.
    Since:
    1.7.0
    Author:
    Adrian Papusoi
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BADGE_TYPE_ID  
      static java.lang.String BIKES  
      static java.lang.String CITY  
      static java.lang.String CLUBS  
      static java.lang.String COUNTRY  
      static java.lang.String CREATED_AT  
      static java.lang.String DATE_PREFERENCE  
      static java.lang.String FIRST_NAME  
      static java.lang.String FOLLOWER_COUNT  
      static java.lang.String FRIEND_COUNT  
      static java.lang.String ID  
      static java.lang.String LAST_NAME  
      static java.lang.String MEASUREMENT_PREFERENCE  
      static java.lang.String PREMIUM  
      static java.lang.String PROFILE  
      static java.lang.String PROFILE_MEDIUM  
      static java.lang.String RESOURCE_STATE  
      static java.lang.String SEX  
      static java.lang.String SHOES  
      static java.lang.String STATE  
      static java.lang.String UPDATED_AT  
      • Fields inherited from class org.pac4j.core.profile.definition.CommonProfileDefinition

        DISPLAY_NAME, EMAIL, FAMILY_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
      StravaProfile 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