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 Description UserProfile(com.ibm.websphere.security.jwt.JwtToken jwtToken, java.util.Map<java.lang.String,java.lang.Object> customProperties, com.ibm.websphere.security.jwt.Claims claims)
UserProfile(com.ibm.websphere.security.jwt.JwtToken jwtToken, java.util.Map<java.lang.String,java.lang.Object> customProperties, com.ibm.websphere.security.jwt.Claims claims, java.lang.String userInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessToken()
java.lang.String
getAccessTokenAlias()
long
getAccessTokenLifeTime()
com.ibm.websphere.security.jwt.Claims
getClaims()
java.util.Set<com.ibm.websphere.security.jwt.Claims>
getClaimSet()
java.lang.String
getEncryptedAccessToken()
com.ibm.websphere.security.jwt.JwtToken
getIdToken()
java.lang.String
getRefreshToken()
java.lang.String
getScopes()
java.lang.String
getSocialMediaName()
java.lang.String
getUserInfo()
return userInfo information from an OpenIdConnect provider's userInfo endpoint for the authenticated user.
-
-
-
Constructor Detail
-
UserProfile
public UserProfile(com.ibm.websphere.security.jwt.JwtToken jwtToken, java.util.Map<java.lang.String,java.lang.Object> customProperties, com.ibm.websphere.security.jwt.Claims claims)
-
UserProfile
public UserProfile(com.ibm.websphere.security.jwt.JwtToken jwtToken, java.util.Map<java.lang.String,java.lang.Object> customProperties, com.ibm.websphere.security.jwt.Claims claims, java.lang.String userInfo)
-
-
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.
-
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.
-
getUserInfo
public java.lang.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.
-
-