Class PropagationHelper
java.lang.Object
com.ibm.websphere.security.openidconnect.PropagationHelper
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Stringstatic longGet the approximate expiration time of the access_token It adds the expires_in(seconds) to the time the process gets the access_token.static StringGet the type of access token which the runAsSubject authenticatedstatic com.ibm.websphere.security.openidconnect.token.IdTokenstatic Stringstatic StringRetrieve userInfo information from an OpenIdConnect provider's userInfo endpoint for an authenticated user.
- 
Constructor Details- 
PropagationHelperpublic PropagationHelper()
 
- 
- 
Method Details- 
getAccessTokenTypeGet the type of access token which the runAsSubject authenticated- Returns:
- the Type of Token, such as: Bearer. If failed, a null is returned
 
- 
getAccessTokenExpirationTimepublic static long getAccessTokenExpirationTime()Get the approximate expiration time of the access_token It adds the expires_in(seconds) to the time the process gets the access_token. The access_token could be invalid or revoked by the OP.- Returns:
- the expiration time of the access_token. If failed, 0 is returned
 
- 
getAccessToken- Returns:
- the access token. If failed, a null is returned
 
- 
getScopes- Returns:
- return all granted scopes separated by a space. If failed, a null is returned
 
- 
getIdTokenpublic static com.ibm.websphere.security.openidconnect.token.IdToken getIdToken()- Returns:
- Id Token. If failed, a null is returned
 
- 
getUserInfoRetrieve userInfo information from an OpenIdConnect provider's userInfo endpoint for an authenticated user.- Returns:
- the userInfo as a String or null if the info is not available or invalid.
 
 
-