com.ibm.websphere.security.openidconnect

Class PropagationHelper

  • java.lang.Object
    • com.ibm.websphere.security.openidconnect.PropagationHelper


  • public class PropagationHelper
    extends java.lang.Object
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String getAccessToken() 
      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.
      static java.lang.String getAccessTokenType()
      Get the type of access token which the runAsSubject authenticated
      static com.ibm.websphere.security.openidconnect.token.IdToken getIdToken() 
      static java.lang.String getScopes() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PropagationHelper

        public PropagationHelper()
    • Method Detail

      • getAccessTokenType

        public static java.lang.String getAccessTokenType()
        Get the type of access token which the runAsSubject authenticated
        Returns:
        the Type of Token, such as: Bearer. If failed, a null is returned
      • getAccessTokenExpirationTime

        public 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

        public static java.lang.String getAccessToken()
        Returns:
        the access token. If failed, a null is returned
      • getScopes

        public static java.lang.String getScopes()
        Returns:
        return all granted scopes separated by a space. If failed, a null is returned
      • getIdToken

        public static com.ibm.websphere.security.openidconnect.token.IdToken getIdToken()
        Returns:
        Id Token. If failed, a null is returned