Package com.authlete.common.assurance
Class Verifier
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.authlete.common.assurance.Verifier
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,Object>
public class Verifier extends LinkedHashMap<String,Object>
The class that representsid_document/verifier
.- 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 Verifier()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsOrganization()
Check if this object contains"organization"
.boolean
containsTxn()
Check if this object contains"txn"
.static Verifier
extract(Map<?,?> map, String key)
Create aVerifier
instance from an object in the given map.String
getOrganization()
Get the organization which performed the verification on behalf of the OP.String
getTxn()
Get the identifier referring to the identity verification transaction.String
removeOrganization()
Remove"organization"
from this object.String
removeTxn()
Remove"txn"
from this object.Verifier
setOrganization(String organization)
Set the organization which performed the verification on behalf of the OP.Verifier
setTxn(String txn)
Set the identifier referring to the identity verification transaction.-
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
-
getOrganization
public String getOrganization()
Get the organization which performed the verification on behalf of the OP.- Returns:
- The organization which performed the verification on behalf of the OP.
-
setOrganization
public Verifier setOrganization(String organization)
Set the organization which performed the verification on behalf of the OP.- Parameters:
organization
- The organization which performed the verification on behalf of the OP.- Returns:
this
object.
-
containsOrganization
public boolean containsOrganization()
Check if this object contains"organization"
.- Returns:
true
if this object contains"organization"
.
-
removeOrganization
public String removeOrganization()
Remove"organization"
from this object.- Returns:
- The old value that may have existed before removal.
-
getTxn
public String getTxn()
Get the identifier referring to the identity verification transaction.- Returns:
- The identifier referring to the identity verification transaction.
-
setTxn
public Verifier setTxn(String txn)
Set the identifier referring to the identity verification transaction.- Parameters:
txn
- The identifier referring to the identity verification transaction.- Returns:
this
object.
-
containsTxn
public boolean containsTxn()
Check if this object contains"txn"
.- Returns:
true
if this object contains"txn"
.
-
removeTxn
public String removeTxn()
Remove"txn"
from this object.- Returns:
- The old value that may have existed before removal.
-
extract
public static Verifier extract(Map<?,?> map, String key) throws IdentityAssuranceException
Create aVerifier
instance from an object in the given map.- Parameters:
map
- A map that may contain"verifier"
.key
- The key that identifies the object in the map. In normal cases, the key is"verifier"
.- Returns:
- A
Verifier
instance that represents"verifier"
. 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).
-
-