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 Verification
addEvidence(Evidence evidence)
Add the evidence the OP used to verify the user's identity.boolean
containsEvidence()
Check if this object contains"evidence"
.boolean
containsTime()
Check if this object contains"time"
.boolean
containsTrustFramework()
Check if this object contains"trust_framework"
.boolean
containsVerificationProcess()
Check if this object contains"verification_process"
.static Verification
extract(Map<?,?> map, String key)
Create aVerification
instance from an object in the given map.EvidenceArray
getEvidence()
Get the evidence the OP used to verify the user's identity.String
getTime()
Get the date and time when identity verification took place.String
getTrustFramework()
Get the trust framework governing the identity verification process and the identity assurance level of the OP.String
getVerificationProcess()
Get the identity verification process.EvidenceArray
removeEvidence()
Remove"evidence"
from this object.String
removeTime()
Remove"time"
from this object.String
removeTrustFramework()
Remove"trust_framework"
from this object.String
removeVerificationProcess()
Remove"verification_process"
from this object.Verification
setEvidence(EvidenceArray evidence)
Set the evidence the OP used to verify the user's identity.Verification
setTime(String time)
Set the date and time when identity verification took place.Verification
setTrustFramework(String framework)
Set the trust framework governing the identity verification process and the identity assurance level of the OP.Verification
setVerificationProcess(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:
this
object.
-
containsTrustFramework
public boolean containsTrustFramework()
Check if this object contains"trust_framework"
.- Returns:
true
if 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:
this
object.
-
containsTime
public boolean containsTime()
Check if this object contains"time"
.- Returns:
true
if 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:
this
object.
-
containsVerificationProcess
public boolean containsVerificationProcess()
Check if this object contains"verification_process"
.- Returns:
true
if 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:
this
object.
-
containsEvidence
public boolean containsEvidence()
Check if this object contains"evidence"
.- Returns:
true
if 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:
this
object.
-
extract
public static Verification extract(Map<?,?> map, String key) throws IdentityAssuranceException
Create aVerification
instance 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
Verification
instance 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).
-
-