Class JsonWebToken

    • Field Detail

      • expiration

        protected long expiration
      • notBefore

        protected long notBefore
      • issuedAt

        protected long issuedAt
      • issuer

        protected String issuer
      • audience

        protected String audience
      • principal

        protected String principal
    • Constructor Detail

      • JsonWebToken

        public JsonWebToken()
    • Method Detail

      • getId

        public String getId()
      • getExpiration

        public long getExpiration()
      • expiration

        public JsonWebToken expiration​(long expiration)
      • isExpired

        public boolean isExpired()
      • getNotBefore

        public long getNotBefore()
      • notBefore

        public JsonWebToken notBefore​(long notBefore)
      • isNotBefore

        public boolean isNotBefore()
      • isActive

        public boolean isActive()
        Tests that the token is not expired and is not-before.
        Returns:
        true if the token is not expired and is not-before
      • getIssuedAt

        public long getIssuedAt()
      • issuedAt

        public JsonWebToken issuedAt​(long issuedAt)
      • getIssuer

        public String getIssuer()
      • getAudience

        public String getAudience()
      • getPrincipal

        public String getPrincipal()
      • getType

        public String getType()