Class UserProfile

java.lang.Object
com.ibm.websphere.security.social.UserProfile
All Implemented Interfaces:
Serializable

public class UserProfile extends Object implements Serializable
This API represents the user's access_token and profile upon user authenticated by social media.
Since:
1.0
See Also:
  • Constructor Details

    • UserProfile

      public UserProfile(com.ibm.websphere.security.jwt.JwtToken jwtToken, Map<String,Object> customProperties, com.ibm.websphere.security.jwt.Claims claims)
    • UserProfile

      public UserProfile(com.ibm.websphere.security.jwt.JwtToken jwtToken, Map<String,Object> customProperties, com.ibm.websphere.security.jwt.Claims claims, String userInfo)
  • Method Details

    • getClaimSet

      public Set<com.ibm.websphere.security.jwt.Claims> getClaimSet()
      Returns:
      user data from social media.
    • getClaims

      public com.ibm.websphere.security.jwt.Claims getClaims()
      Returns:
      user data from social media.
    • getAccessToken

      public String getAccessToken()
      Returns:
      access token used for user API call.
    • getRefreshToken

      public String getRefreshToken()
      Returns:
      refresh token.
    • getAccessTokenLifeTime

      public long getAccessTokenLifeTime()
      Returns:
      access_token life time.
    • getSocialMediaName

      public String getSocialMediaName()
      Returns:
      social media name.
    • getScopes

      public String getScopes()
      Returns:
      authorized scope.
    • getIdToken

      public com.ibm.websphere.security.jwt.JwtToken getIdToken()
      Returns:
      IdToken as JWT.
    • getEncryptedAccessToken

      public String getEncryptedAccessToken()
      Returns:
      encrypted access token.
    • getAccessTokenAlias

      public String getAccessTokenAlias()
      Returns:
      access token alias that can resolve access_token.
    • getUserInfo

      public String getUserInfo()
      return userInfo information from an OpenIdConnect provider's userInfo endpoint for the authenticated user.
      Returns:
      the userInfo JSON as a string or null if the info is not available.