public interface Claim
| Modifier and Type | Method and Description |
|---|---|
<T> T |
as(Class<T> tClazz)
Get this Claim as a custom type T.
|
<T> T[] |
asArray(Class<T> tClazz)
Get this Claim as an Array of type T.
|
Boolean |
asBoolean()
Get this Claim as a Boolean.
|
Date |
asDate()
Get this Claim as a Date.
|
Double |
asDouble()
Get this Claim as a Double.
|
Integer |
asInt()
Get this Claim as an Integer.
|
<T> List<T> |
asList(Class<T> tClazz)
Get this Claim as a List of type T.
|
Long |
asLong()
Get this Claim as an Long.
|
Map<String,Object> |
asMap()
Get this Claim as a generic Map of values.
|
String |
asString()
Get this Claim as a String.
|
boolean |
isNull()
Whether this Claim has a null value or not.
|
boolean isNull()
Boolean asBoolean()
Integer asInt()
Long asLong()
Double asDouble()
String asString()
Date asDate()
<T> T[] asArray(Class<T> tClazz) throws JWTDecodeException
JWTDecodeException - if the values inside the Array can't be converted to a class T.<T> List<T> asList(Class<T> tClazz) throws JWTDecodeException
JWTDecodeException - if the values inside the List can't be converted to a class T.Map<String,Object> asMap() throws JWTDecodeException
JWTDecodeException - if the value can't be converted to a Map.<T> T as(Class<T> tClazz) throws JWTDecodeException
JWTDecodeException - if the value can't be converted to a class T.Copyright © 2017. All rights reserved.