com.ibm.websphere.security.social

Class UserProfile

  • java.lang.Object
    • com.ibm.websphere.security.social.UserProfile


  • public class UserProfile
    extends java.lang.Object
    This API represents the user’s access_token and profile upon user authenticated by social media.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor and Description
      UserProfile(com.ibm.websphere.security.jwt.JwtToken jwtToken, com.ibm.websphere.security.jwt.JwtToken jwtAccessToken, java.util.Map<java.lang.String,java.lang.Object> customProperties) 
    • Constructor Detail

      • UserProfile

        public UserProfile(com.ibm.websphere.security.jwt.JwtToken jwtToken,
                   com.ibm.websphere.security.jwt.JwtToken jwtAccessToken,
                   java.util.Map<java.lang.String,java.lang.Object> customProperties)
    • Method Detail

      • getClaimSet

        public java.util.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 java.lang.String getAccessToken()
        Returns:
        access token used for user API call.
      • getRefreshToken

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

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

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

        public java.lang.String getScopes()
        Returns:
        authorized scope.
      • getJwtAccessToken

        public com.ibm.websphere.security.jwt.JwtToken getJwtAccessToken()
        Returns:
        access token as JWT.
      • getIdToken

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

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

        public java.lang.String getAccessTokenAlias()
        Returns:
        access token alias that can resolve access_token.