Class Token


  • public abstract class Token
    extends Object
    The oauth token, obtained upon a successful token request and ready to embed in requests.
    • Constructor Detail

      • Token

        public Token()
    • Method Detail

      • accessToken

        public abstract String accessToken()
        The access token obtained from the OAuth server.
      • tokenType

        public abstract String tokenType()
        The type of the token, e.g., Bearer.
      • expiresIn

        public abstract long expiresIn()
        In how many seconds this token expires.
      • create

        public static Token create​(String accessToken,
                                   String tokenType,
                                   long expiresIn)