Package org.entur.jwt.verifier
Interface JwtClaimExtractor<T>
-
- Type Parameters:
T- token type
- All Superinterfaces:
java.io.Serializable
public interface JwtClaimExtractor<T> extends java.io.SerializableExtract claims from a token. Basic JSON-types are supported. Note that all integer numbers must be of Long type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <V> VgetClaim(T token, java.lang.String name, java.lang.Class<V> type)java.util.Map<java.lang.String,java.lang.Object>getClaims(T token)Extract claims
-
-
-
Method Detail
-
getClaim
<V> V getClaim(T token, java.lang.String name, java.lang.Class<V> type) throws JwtClaimException
- Throws:
JwtClaimException
-
getClaims
java.util.Map<java.lang.String,java.lang.Object> getClaims(T token) throws JwtClaimException
Extract claims- Parameters:
token- the (JWT) token to extract claims from- Returns:
- resulting claims as map (must be serializable)
- Throws:
JwtClaimException- if unexpected problem or invalid data
-
-