Package com.authlete.common.assurance
Class Evidence
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.authlete.common.assurance.Evidence
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- Direct Known Subclasses:
IDDocument,QES,UtilityBill
public abstract class Evidence extends LinkedHashMap<String,Object>
The class that represents elements inverified_claims/verification/evidence.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Evidenceextract(List<?> list, int index, String key)Create an instance of a subclass ofEvidencefrom an object in the given list.StringgetType()Get the type of this evidence.-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Constructor Detail
-
Evidence
public Evidence(String type)
The constructor.- Parameters:
type- The type of the evidence.- See Also:
- OpenID Connect for Identity Assurance 1.0, 4.1.1. Evidence
-
-
Method Detail
-
getType
public String getType()
Get the type of this evidence. The value given to the constructor ofEvidence.- Returns:
- The type of this evidence.
-
extract
public static Evidence extract(List<?> list, int index, String key) throws IdentityAssuranceException
Create an instance of a subclass ofEvidencefrom an object in the given list.- Parameters:
list- A list that represents an"evidence"array.index- The position in the list.key- The key that identifies the array. In normal cases, the key is"evidence".- Returns:
- An instance of a subclass of
Evidencethat represents the element in the"evidence"array. - Throws:
IdentityAssuranceException- The structure of the object does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
-