Annotation Type Claim


  • @Qualifier
    @Retention(RUNTIME)
    @Target({FIELD,METHOD,PARAMETER,TYPE})
    public @interface Claim
    Annotation used to signify an injection point for a ClaimValue from a JsonWebToken
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      Claims standard
      An alternate way of specifying a claim name using the Claims enum
      java.lang.String value
      The value specifies the id name the claim to inject
    • Element Detail

      • value

        java.lang.String value
        The value specifies the id name the claim to inject
        Returns:
        the claim name
        See Also:
        JsonWebToken.getClaim(String)
        Default:
        ""
      • standard

        Claims standard
        An alternate way of specifying a claim name using the Claims enum
        Returns:
        the claim enum
        Default:
        org.eclipse.microprofile.jwt.Claims.UNKNOWN