| Constructor and Description |
|---|
NullClaim() |
| 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.
|
public boolean isNull()
Claimpublic Boolean asBoolean()
Claimpublic Integer asInt()
Claimpublic Long asLong()
Claimpublic Double asDouble()
Claimpublic String asString()
Claimpublic Date asDate()
Claimpublic <T> T[] asArray(Class<T> tClazz) throws JWTDecodeException
ClaimasArray in interface ClaimJWTDecodeException - if the values inside the Array can't be converted to a class T.public <T> List<T> asList(Class<T> tClazz) throws JWTDecodeException
ClaimasList in interface ClaimJWTDecodeException - if the values inside the List can't be converted to a class T.public Map<String,Object> asMap() throws JWTDecodeException
ClaimasMap in interface ClaimJWTDecodeException - if the value can't be converted to a Map.public <T> T as(Class<T> tClazz) throws JWTDecodeException
Claimas in interface ClaimJWTDecodeException - if the value can't be converted to a class T.Copyright © 2017. All rights reserved.