public interface Claims
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getArrayStringClaim(java.lang.String name)
Get String List claim of given name
|
java.util.OptionalDouble |
getDoubleClaim(java.lang.String name)
Get double claim of given name
|
java.util.OptionalInt |
getIntClaim(java.lang.String name)
Get integer claim of given name
|
java.util.OptionalLong |
getLongClaim(java.lang.String name)
Get long claim of given name
|
java.util.Optional<Claims> |
getNested(java.lang.String name)
Get nested claims of given name.
|
java.util.Optional<java.time.Instant> |
getNumericDateClaim(java.lang.String name)
Get Numeric Date claim of given name
|
java.util.Optional<java.lang.String> |
getStringClaim(java.lang.String name)
Get String claim of given name
|
java.util.Optional<java.lang.String> getStringClaim(java.lang.String name)
name
- java.lang.IllegalArgumentException
- when value of claim is not a stringjava.util.Optional<java.time.Instant> getNumericDateClaim(java.lang.String name)
name
- java.lang.IllegalArgumentException
- when value of claim is not a number that represents an epoch secondsjava.util.List<java.lang.String> getArrayStringClaim(java.lang.String name)
name
- java.lang.IllegalArgumentException
- when value of claim is neither string or array of stringsjava.util.OptionalInt getIntClaim(java.lang.String name)
name
- java.lang.IllegalArgumentException
- when value of claim is not a numberjava.util.OptionalLong getLongClaim(java.lang.String name)
name
- java.lang.IllegalArgumentException
- when value of claim is not a numberjava.util.OptionalDouble getDoubleClaim(java.lang.String name)
name
- java.lang.IllegalArgumentException
- when value of claim is not a numberjava.util.Optional<Claims> getNested(java.lang.String name)
name
- java.lang.IllegalArgumentException
- when value is not a nested object