public class Claims extends LinkedHashMap<String,Object>
verified_claims/claims.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Claims() |
| Modifier and Type | Method and Description |
|---|---|
static Claims |
extract(Map<?,?> map,
String key)
Create a
Claims instance from an object in the given map. |
Claims |
putClaim(String claimName,
Object claimValue)
Put a claim to this object.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizeequals, hashCode, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, sizepublic Claims putClaim(String claimName, Object claimValue)
This method internally calls put(String, Object) method to
register the given pair of claim name and claim value and then
returns this object.
claimName - The claim name.claimValue - The claim value.this object.public static Claims extract(Map<?,?> map, String key) throws IdentityAssuranceException
Claims instance from an object in the given map.map - A map that may contain "claims".key - The key that identifies the object in the map. In normal cases,
the key is "claims".Claims instance that represents "claims".
If the map does not contain the given key, null is returned.IdentityAssuranceException - The structure of the map does not conform to the specification
(OpenID Connect for Identity Assurance 1.0).Copyright © 2022. All rights reserved.