Annotation Interface JWT


@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public @interface JWT
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
    static @interface 
    A static claim is a claim that is required to be present on the token, and have a particular value.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    If set, then the token extracted from the bearer token must have this issuer.
    If set, the static claims provided and their values will be required when calling the service.
     
  • Element Details

    • validate

      JWT.JwtMethodMode[] validate
      Default:
      {UNSPECIFIED}
    • bearerTokenIssuer

      String[] bearerTokenIssuer
      If set, then the token extracted from the bearer token must have this issuer. This can be used in combination with the issuer field of configuration for JWT secrets, if there is at least one secret that has this issuer set, then only those secrets with that issuer set will be used for validating or signing this token, so you can be sure that the token did come from a particular issuer.`
      Default:
      {}
    • staticClaims

      JWT.StaticClaim[] staticClaims
      If set, the static claims provided and their values will be required when calling the service. When multiple claims are provided, all of them will be required to successfully call the service.
      Default:
      {}