Class Token


  • public class Token
    extends Object
    • Field Detail

      • expireTime

        public final long expireTime
        unix time in seconds
      • token

        public final String token
    • Constructor Detail

      • Token

        public Token​(long expireTime,
                     String token)
    • Method Detail

      • valid

        public boolean valid()
        assume the token is expired 1 minute before the actual expiry