Package com.authlete.common.assurance
Class IDDocument
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.authlete.common.assurance.Evidence
-
- com.authlete.common.assurance.IDDocument
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class IDDocument extends Evidence
The class that representsid_document.- 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>
-
-
Constructor Summary
Constructors Constructor Description IDDocument()The constructor that construct evidence whose type is"id_document".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsDocument()Check if this object contains"document".booleancontainsMethod()Check if this object contains"method".booleancontainsTime()Check if this object contains"time".booleancontainsVerifier()Check if this object contains"verifier".static IDDocumentextract(Map<?,?> map)Create anIDDocumentinstance from the given object.DocumentgetDocument()Get the ID document used to perform the ID verification.StringgetMethod()Get the method used to verify this ID document.StringgetTime()Get the date when this ID document was verified.VerifiergetVerifier()Get the legal entity that performed the identity verification.DocumentremoveDocument()Remove"document"from this object.ProviderremoveMethod()Remove"method"from this object.StringremoveTime()Remove"time"from this object.VerifierremoveVerifier()Remove"verifier"from this object.IDDocumentsetDocument(Document document)Set the ID document used to perform the ID verification.IDDocumentsetMethod(String method)Set the method used to verify this ID document.IDDocumentsetTime(String time)Set the date when this ID document was verified.IDDocumentsetVerifier(Verifier verifier)Set the legal entity that performed the identity verification.-
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
-
-
-
-
Method Detail
-
getMethod
public String getMethod()
Get the method used to verify this ID document.- Returns:
- The method used to verify this ID document.
-
setMethod
public IDDocument setMethod(String method)
Set the method used to verify this ID document.- Parameters:
method- The method used to verify this ID document.- Returns:
thisobject.
-
containsMethod
public boolean containsMethod()
Check if this object contains"method".- Returns:
trueif this object contains"method".
-
removeMethod
public Provider removeMethod()
Remove"method"from this object.- Returns:
- The old value that may have existed before removal.
-
getVerifier
public Verifier getVerifier()
Get the legal entity that performed the identity verification.- Returns:
- The legal entity that performed the identity verification.
-
setVerifier
public IDDocument setVerifier(Verifier verifier)
Set the legal entity that performed the identity verification.- Parameters:
verifier- The legal entity that performed the identity verification.- Returns:
thisobject;
-
containsVerifier
public boolean containsVerifier()
Check if this object contains"verifier".- Returns:
trueif this object contains"verifier".
-
removeVerifier
public Verifier removeVerifier()
Remove"verifier"from this object.- Returns:
- The old value that may have existed before removal.
-
getTime
public String getTime()
Get the date when this ID document was verified.- Returns:
- The date when this ID document was verified.
-
setTime
public IDDocument setTime(String time)
Set the date when this ID document was verified.- Parameters:
time- The date when this ID document was verified.- Returns:
thisobject.
-
containsTime
public boolean containsTime()
Check if this object contains"time".- Returns:
trueif this object contains"time".
-
removeTime
public String removeTime()
Remove"time"from this object.- Returns:
- The old value that may have existed before removal.
-
getDocument
public Document getDocument()
Get the ID document used to perform the ID verification.- Returns:
- The ID document used to perform the ID verification.
-
setDocument
public IDDocument setDocument(Document document)
Set the ID document used to perform the ID verification.- Parameters:
document- The ID document used to perform the ID verification.- Returns:
thisobject.
-
containsDocument
public boolean containsDocument()
Check if this object contains"document".- Returns:
trueif this object contains"document".
-
removeDocument
public Document removeDocument()
Remove"document"from this object.- Returns:
- The old value that may have existed before removal.
-
extract
public static IDDocument extract(Map<?,?> map) throws IdentityAssuranceException
Create anIDDocumentinstance from the given object.- Parameters:
map- A map that represents"id_document".- Returns:
- An
IDDocumentinstance that represents"id_document". - Throws:
IdentityAssuranceException- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
-