程序包 gateway.api

类 JwtToken

java.lang.Object
gateway.api.JwtToken
所有已实现的接口:
Serializable

public class JwtToken extends Object implements Serializable
JWT安全令牌
作者:
neeker
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • jwtToken

      private String jwtToken
    • createTime

      private Date createTime
    • expireTime

      private Date expireTime
  • 构造器详细资料

    • JwtToken

      JwtToken(String jwtToken, Date createTime, Date expireTime)
  • 方法详细资料

    • isExpired

      boolean isExpired()
      是否已过期
      返回:
    • getJwtToken

      public String getJwtToken()
      获得JWT令牌
      返回:
    • toParameterString

      public String toParameterString()
      获得查询参数的字符串
      返回:
    • toAuthorizationString

      public String toAuthorizationString()
      获得认证头字符串
      返回:
    • getCreateTime

      public Date getCreateTime()
      创建时间
      返回:
    • getExpireTime

      public Date getExpireTime()
      超时时间
      返回:
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object