Package com.authlete.common.assurance
Class Verification
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.authlete.common.assurance.Verification
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class Verification extends LinkedHashMap<String,Object>
The class that representsverified_claims/verification.- 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 Verification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VerificationaddEvidence(Evidence evidence)Add the evidence the OP used to verify the user's identity.booleancontainsEvidence()Check if this object contains"evidence".booleancontainsTime()Check if this object contains"time".booleancontainsTrustFramework()Check if this object contains"trust_framework".booleancontainsVerificationProcess()Check if this object contains"verification_process".static Verificationextract(Map<?,?> map, String key)Create aVerificationinstance from an object in the given map.EvidenceArraygetEvidence()Get the evidence the OP used to verify the user's identity.StringgetTime()Get the date and time when identity verification took place.StringgetTrustFramework()Get the trust framework governing the identity verification process and the identity assurance level of the OP.StringgetVerificationProcess()Get the identity verification process.EvidenceArrayremoveEvidence()Remove"evidence"from this object.StringremoveTime()Remove"time"from this object.StringremoveTrustFramework()Remove"trust_framework"from this object.StringremoveVerificationProcess()Remove"verification_process"from this object.VerificationsetEvidence(EvidenceArray evidence)Set the evidence the OP used to verify the user's identity.VerificationsetTime(String time)Set the date and time when identity verification took place.VerificationsetTrustFramework(String framework)Set the trust framework governing the identity verification process and the identity assurance level of the OP.VerificationsetVerificationProcess(String process)Set the identity verification process.-
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
-
getTrustFramework
public String getTrustFramework()
Get the trust framework governing the identity verification process and the identity assurance level of the OP.- Returns:
- The trust framework.
-
setTrustFramework
public Verification setTrustFramework(String framework)
Set the trust framework governing the identity verification process and the identity assurance level of the OP.- Parameters:
framework- The trust framework.- Returns:
thisobject.
-
containsTrustFramework
public boolean containsTrustFramework()
Check if this object contains"trust_framework".- Returns:
trueif this object contains"trust_framework".
-
removeTrustFramework
public String removeTrustFramework()
Remove"trust_framework"from this object.- Returns:
- The old value that may have existed before removal.
-
getTime
public String getTime()
Get the date and time when identity verification took place.- Returns:
- The date and time when identity verification took place.
-
setTime
public Verification setTime(String time)
Set the date and time when identity verification took place.- Parameters:
time- The date and time when identity verification took place.- 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.
-
getVerificationProcess
public String getVerificationProcess()
Get the identity verification process.- Returns:
- The identity verification process.
-
setVerificationProcess
public Verification setVerificationProcess(String process)
Set the identity verification process.- Parameters:
process- The identity verification process.- Returns:
thisobject.
-
containsVerificationProcess
public boolean containsVerificationProcess()
Check if this object contains"verification_process".- Returns:
trueif this object contains"verification_process".
-
removeVerificationProcess
public String removeVerificationProcess()
Remove"verification_process"from this object.- Returns:
- The old value that may have existed before removal.
-
getEvidence
public EvidenceArray getEvidence()
Get the evidence the OP used to verify the user's identity.- Returns:
- The evidence the OP used to verify the user's identity.
-
setEvidence
public Verification setEvidence(EvidenceArray evidence)
Set the evidence the OP used to verify the user's identity.- Parameters:
evidence- The evidence the OP used to verify the user's identity.- Returns:
thisobject.
-
containsEvidence
public boolean containsEvidence()
Check if this object contains"evidence".- Returns:
trueif this object contains"evidence".
-
removeEvidence
public EvidenceArray removeEvidence()
Remove"evidence"from this object.- Returns:
- The old value that may have existed before removal.
-
addEvidence
public Verification addEvidence(Evidence evidence)
Add the evidence the OP used to verify the user's identity.- Parameters:
evidence- The evidence the OP used to verify the user's identity.- Returns:
thisobject.
-
extract
public static Verification extract(Map<?,?> map, String key) throws IdentityAssuranceException
Create aVerificationinstance from an object in the given map.- Parameters:
map- A map that may contain"verification".key- The key that identifies the object in the map. In normal cases, the key is"verification".- Returns:
- A
Verificationinstance that represents"verification". If the map does not contain the given key, null is returned. - Throws:
IdentityAssuranceException- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
-