Annotation Interface Claim


@Retention(RUNTIME) @Target({}) public @interface Claim
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Claim name
    Claim value
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Claim value type.
  • Element Details

    • key

      String key
      Claim name
    • value

      String value
      Claim value
    • type

      ClaimType type
      Claim value type. If this type is set to ClaimType.DEFAULT then the value will be converted to String unless the claim is a standard claim such as `exp` (expiry), `iat` (issued at), `nbf` (not before), `auth_time` (authentication time) whose value will be converted to Long or `email_verified` whose value will be converted to Boolean.
      Default:
      DEFAULT