Class OAuth20Profile

java.lang.Object
org.pac4j.core.profile.BasicUserProfile
org.pac4j.core.profile.CommonProfile
org.pac4j.oauth.profile.OAuth20Profile
All Implemented Interfaces:
Externalizable, Serializable, org.pac4j.core.profile.UserProfile
Direct Known Subclasses:
CasOAuthWrapperProfile, CronofyProfile, FacebookProfile, FigShareProfile, FoursquareProfile, GitHubProfile, Google2Profile, HiOrgServerProfile, LinkedIn2Profile, OAuth10Profile, OkProfile, PayPalProfile, QQProfile, StravaProfile, VkProfile, WechatProfile, WeiboProfile, WindowsLiveProfile, WordPressProfile

public class OAuth20Profile extends org.pac4j.core.profile.CommonProfile
This class is the base OAuth 2.0 profile, extending from the base CommonProfile. It deals with the OAuth access token.
Since:
1.3.0
Author:
Jerome Leleu
See Also:
  • Field Summary

    Fields inherited from class org.pac4j.core.profile.BasicUserProfile

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getAccessToken.
    getRefreshToken.
    void
    void
    setAccessToken(String accessToken)
    setAccessToken.
    void
    setRefreshToken(String refreshToken)
    setRefreshToken.

    Methods inherited from class org.pac4j.core.profile.CommonProfile

    getAttributeAsDate, getAttributeAsString, getAttributeAsType, getDisplayName, getEmail, getFamilyName, getFirstName, getGender, getLocale, getLocation, getPictureUrl, getProfileUrl, getUsername, isExpired, toString

    Methods inherited from class org.pac4j.core.profile.BasicUserProfile

    addAttribute, addAttributes, addAuthenticationAttribute, addAuthenticationAttributes, addRole, addRoles, asPrincipal, build, build, containsAttribute, containsAuthenticationAttribute, extractAttributeValues, getAttribute, getAttribute, getAttributes, getAuthenticationAttribute, getAuthenticationAttribute, getAuthenticationAttributes, getClientName, getId, getLinkedId, getRoles, getTypedId, isRemembered, readExternal, removeAttribute, removeAuthenticationAttribute, setClientName, setId, setLinkedId, setRemembered, setRoles, writeExternal

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • OAuth20Profile

      public OAuth20Profile()
  • Method Details

    • setAccessToken

      public void setAccessToken(String accessToken)

      setAccessToken.

      Parameters:
      accessToken - a String object
    • getAccessToken

      public String getAccessToken()

      getAccessToken.

      Returns:
      a String object
    • setRefreshToken

      public void setRefreshToken(String refreshToken)

      setRefreshToken.

      Parameters:
      refreshToken - a String object
    • getRefreshToken

      public String getRefreshToken()

      getRefreshToken.

      Returns:
      a String object
    • removeLoginData

      public void removeLoginData()
      Overrides:
      removeLoginData in class org.pac4j.core.profile.BasicUserProfile