Class AccessToken


  • public class AccessToken
    extends java.lang.Object
    A representation of the CI Access Token.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getAccessToken()
      Returns the access token.
      int getExpiresIn()
      Return the number of seconds that this access token is valid.
      java.time.Instant getExpiresTime()
      Returns the time that this access token expires.
      java.lang.String getScope()
      Returns the scope for which this access token is valid.
      java.lang.String getTokenType()
      Returns the type of the access token.
      • Methods inherited from class java.lang.Object

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

      • getAccessToken

        public java.lang.String getAccessToken()
        Returns the access token.
        Returns:
        String
      • getScope

        public java.lang.String getScope()
        Returns the scope for which this access token is valid.
        Returns:
        String
      • getTokenType

        public java.lang.String getTokenType()
        Returns the type of the access token. For example Bearer.
        Returns:
        String
      • getExpiresIn

        public int getExpiresIn()
        Return the number of seconds that this access token is valid.
        Returns:
        int
      • getExpiresTime

        public java.time.Instant getExpiresTime()
        Returns the time that this access token expires.
        Returns:
        java.time.Instant