Package com.authlete.common.assurance
Class UtilityBill
- 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.UtilityBill
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
public class UtilityBill extends Evidence
The class that representsutility_bill.- 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 UtilityBill()The constructor that construct evidence whose type is"utility_bill".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsDate()Check if this object contains"date".booleancontainsProvider()Check if this object contains"provider".static UtilityBillextract(Map<?,?> map)Create aUtilityBillinstance from the given object.StringgetDate()Get the date when the utility bill was issued.ProvidergetProvider()Get the provider that issued the utility bill.StringremoveDate()Remove"date"from this object.ProviderremoveProvider()Remove"provider"from this object.UtilityBillsetDate(String date)Set the date when the utility bill was issued.UtilityBillsetProvider(Provider provider)Set the provider that issued the utility bill.-
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
-
getProvider
public Provider getProvider()
Get the provider that issued the utility bill.- Returns:
- The provider that issued the utility bill.
-
setProvider
public UtilityBill setProvider(Provider provider)
Set the provider that issued the utility bill.- Parameters:
provider- The provider that issued the utility bill.- Returns:
thisobject.
-
containsProvider
public boolean containsProvider()
Check if this object contains"provider".- Returns:
trueif this object contains"provider".
-
removeProvider
public Provider removeProvider()
Remove"provider"from this object.- Returns:
- The old value that may have existed before removal.
-
getDate
public String getDate()
Get the date when the utility bill was issued.- Returns:
- The date when the utility bill was issued.
-
setDate
public UtilityBill setDate(String date)
Set the date when the utility bill was issued.- Parameters:
date- The date when the utility bill was issued.- Returns:
thisobject.
-
containsDate
public boolean containsDate()
Check if this object contains"date".- Returns:
trueif this object contains"date".
-
removeDate
public String removeDate()
Remove"date"from this object.- Returns:
- The old value that may have existed before removal.
-
extract
public static UtilityBill extract(Map<?,?> map) throws IdentityAssuranceException
Create aUtilityBillinstance from the given object.- Parameters:
map- A map that represents"utility_bill".- Returns:
- A
UtilityBillinstance that represents"utility_bill". - Throws:
IdentityAssuranceException- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
-