Package org.eclipse.microprofile.jwt
Interface ClaimValue<T>
-
- Type Parameters:
T
- the expected type of the claim
- All Superinterfaces:
java.security.Principal
public interface ClaimValue<T> extends java.security.Principal
A representation of a claim in aJsonWebToken
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getName()
Access the name of the claim.T
getValue()
Access the value of the claim.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Access the name of the claim.- Specified by:
getName
in interfacejava.security.Principal
- Returns:
- The name of the claim as seen in the JsonWebToken content
-
getValue
T getValue()
Access the value of the claim.- Returns:
- the value of the claim.
-
-