You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

claims.go 638B

12345678910111213141516
  1. package jwt
  2. // Claims represent any form of a JWT Claims Set according to
  3. // https://datatracker.ietf.org/doc/html/rfc7519#section-4. In order to have a
  4. // common basis for validation, it is required that an implementation is able to
  5. // supply at least the claim names provided in
  6. // https://datatracker.ietf.org/doc/html/rfc7519#section-4.1 namely `exp`,
  7. // `iat`, `nbf`, `iss`, `sub` and `aud`.
  8. type Claims interface {
  9. GetExpirationTime() (*NumericDate, error)
  10. GetIssuedAt() (*NumericDate, error)
  11. GetNotBefore() (*NumericDate, error)
  12. GetIssuer() (string, error)
  13. GetSubject() (string, error)
  14. GetAudience() (ClaimStrings, error)
  15. }