Class UserProfile
java.lang.Object
com.ibm.websphere.security.social.UserProfile
- All Implemented Interfaces:
Serializable
This API represents the user's access_token and profile upon user authenticated by social media.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionUserProfile
(com.ibm.websphere.security.jwt.JwtToken jwtToken, Map<String, Object> customProperties, com.ibm.websphere.security.jwt.Claims claims) UserProfile
(com.ibm.websphere.security.jwt.JwtToken jwtToken, Map<String, Object> customProperties, com.ibm.websphere.security.jwt.Claims claims, String userInfo) -
Method Summary
Modifier and TypeMethodDescriptionlong
com.ibm.websphere.security.jwt.Claims
Set<com.ibm.websphere.security.jwt.Claims>
com.ibm.websphere.security.jwt.JwtToken
return userInfo information from an OpenIdConnect provider's userInfo endpoint for the authenticated user.
-
Constructor Details
-
UserProfile
-
UserProfile
-
-
Method Details
-
getClaimSet
- Returns:
- user data from social media.
-
getClaims
public com.ibm.websphere.security.jwt.Claims getClaims()- Returns:
- user data from social media.
-
getAccessToken
- Returns:
- access token used for user API call.
-
getRefreshToken
- Returns:
- refresh token.
-
getAccessTokenLifeTime
public long getAccessTokenLifeTime()- Returns:
- access_token life time.
-
getSocialMediaName
- Returns:
- social media name.
-
getScopes
- Returns:
- authorized scope.
-
getIdToken
public com.ibm.websphere.security.jwt.JwtToken getIdToken()- Returns:
- IdToken as JWT.
-
getEncryptedAccessToken
- Returns:
- encrypted access token.
-
getAccessTokenAlias
- Returns:
- access token alias that can resolve access_token.
-
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.
-