Class AccessToken


  • public class AccessToken
    extends java.lang.Object
    Access token.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessToken​(java.lang.String token, long expireTime)
      Instantiate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getExpireTime()
      Obtains the expire time in seconds.
      java.lang.String getToken()
      Obtains the token.
      • Methods inherited from class java.lang.Object

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

      • AccessToken

        public AccessToken​(java.lang.String token,
                           long expireTime)
        Instantiate.
        Parameters:
        token - Token.
        expireTime - Expire time in seconds.
    • Method Detail

      • getToken

        public java.lang.String getToken()
        Obtains the token.
        Returns:
        Token.
      • getExpireTime

        public long getExpireTime()
        Obtains the expire time in seconds.
        Returns:
        Expire time in seconds.