Package com.authlete.common.assurance
Class Issuer
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,Object>
-
- com.authlete.common.assurance.Issuer
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class Issuer extends LinkedHashMap<String,Object>
The class that representsid_document/document/issuer.- 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 Issuer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsCountry()Check if this object contains"country".booleancontainsName()Check if this object contains"name".static Issuerextract(Map<?,?> map, String key)Create anIssuerinstance from an object in the given map.StringgetCountry()Get the country or organization that issued the document.StringgetName()Get the name of the issuer.StringremoveCountry()Remove"country"from this object.StringremoveName()Remove"name"from this object.IssuersetCountry(String country)Set the country or organization that issued the document.IssuersetName(String name)Set the name of the issuer.-
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
-
getName
public String getName()
Get the name of the issuer.- Returns:
- The name of the issuer.
-
setName
public Issuer setName(String name)
Set the name of the issuer.- Parameters:
name- The name of the issuer.- Returns:
thisobject.
-
containsName
public boolean containsName()
Check if this object contains"name".- Returns:
trueif this object contains"name".
-
removeName
public String removeName()
Remove"name"from this object.- Returns:
- The old value that may have existed before removal.
-
getCountry
public String getCountry()
Get the country or organization that issued the document.- Returns:
- The country or organization that issued the document.
-
setCountry
public Issuer setCountry(String country)
Set the country or organization that issued the document.- Parameters:
country- The country or organization that issued the document.- Returns:
thisobject.
-
containsCountry
public boolean containsCountry()
Check if this object contains"country".- Returns:
trueif this object contains"country".
-
removeCountry
public String removeCountry()
Remove"country"from this object.- Returns:
- The old value that may have existed before removal.
-
extract
public static Issuer extract(Map<?,?> map, String key) throws IdentityAssuranceException
Create anIssuerinstance from an object in the given map.- Parameters:
map- A map that may contain"issuer".key- The key that identifies the object in the map. In normal cases, the key is"issuer".- Returns:
- An
Issuerinstance that represents"issuer". 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).
-
-