| Constructor and Description |
|---|
NullClaim() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
as(java.lang.Class<T> tClazz)
Get this Claim as a custom type T.
|
<T> T[] |
asArray(java.lang.Class<T> tClazz)
Get this Claim as an Array of type T.
|
java.lang.Boolean |
asBoolean()
Get this Claim as a Boolean.
|
java.util.Date |
asDate()
Get this Claim as a Date.
|
java.lang.Double |
asDouble()
Get this Claim as a Double.
|
java.lang.Integer |
asInt()
Get this Claim as an Integer.
|
<T> java.util.List<T> |
asList(java.lang.Class<T> tClazz)
Get this Claim as a List of type T.
|
java.lang.Long |
asLong()
Get this Claim as an Long.
|
java.util.Map<java.lang.String,java.lang.Object> |
asMap()
Get this Claim as a generic Map of values.
|
java.lang.String |
asString()
Get this Claim as a String.
|
boolean |
isNull()
Whether this Claim has a null value or not.
|
java.lang.String |
toString() |
public boolean isNull()
Claimpublic java.lang.Boolean asBoolean()
Claimpublic java.lang.Integer asInt()
Claimpublic java.lang.Long asLong()
Claimpublic java.lang.Double asDouble()
Claimpublic java.lang.String asString()
Claimpublic java.util.Date asDate()
Claimpublic <T> T[] asArray(java.lang.Class<T> tClazz)
throws JWTDecodeException
ClaimasArray in interface ClaimT - typetClazz - the type classJWTDecodeException - if the values inside the Array can't be converted to a class T.public <T> java.util.List<T> asList(java.lang.Class<T> tClazz)
throws JWTDecodeException
ClaimasList in interface ClaimT - typetClazz - the type classJWTDecodeException - if the values inside the List can't be converted to a class T.public java.util.Map<java.lang.String,java.lang.Object> asMap()
throws JWTDecodeException
ClaimasMap in interface ClaimJWTDecodeException - if the value can't be converted to a Map.public <T> T as(java.lang.Class<T> tClazz)
throws JWTDecodeException
Claimas in interface ClaimT - typetClazz - the type classJWTDecodeException - if the value can't be converted to a class T.public java.lang.String toString()
toString in class java.lang.Object