Top Description Methods
org.eclipse.microprofile.jwt

public @Interface Claim

extends Annotation
Known Direct Implementers
org.eclipse.microprofile.jwt.ClaimLiteral
Annotations
@Qualifier
@Retention:RUNTIME
@Target:FIELD, METHOD, PARAMETER, TYPE
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target, jakarta.enterprise.util.Nonbinding, jakarta.inject.Qualifier

Annotation used to signify an injection point for a ClaimValue from a JsonWebToken

Method Summary

Modifier and TypeMethod and Description
public Claims

Returns:

the claim enum
standard
()

An alternate way of specifying a claim name using the Claims enum

public String

Returns:

the claim name
value
()

The value specifies the id name the claim to inject

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

standardback to summary
public Claims standard()

An alternate way of specifying a claim name using the Claims enum

Returns:Claims

the claim enum

Annotations
@Nonbinding
valueback to summary
public String value()

The value specifies the id name the claim to inject

Returns:String

the claim name

Annotations
@Nonbinding
See Also
JsonWebToken#getClaim(String)