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 boolean
containsDate()
Check if this object contains"date"
.boolean
containsProvider()
Check if this object contains"provider"
.static UtilityBill
extract(Map<?,?> map)
Create aUtilityBill
instance from the given object.String
getDate()
Get the date when the utility bill was issued.Provider
getProvider()
Get the provider that issued the utility bill.String
removeDate()
Remove"date"
from this object.Provider
removeProvider()
Remove"provider"
from this object.UtilityBill
setDate(String date)
Set the date when the utility bill was issued.UtilityBill
setProvider(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:
this
object.
-
containsProvider
public boolean containsProvider()
Check if this object contains"provider"
.- Returns:
true
if 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:
this
object.
-
containsDate
public boolean containsDate()
Check if this object contains"date"
.- Returns:
true
if 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 aUtilityBill
instance from the given object.- Parameters:
map
- A map that represents"utility_bill"
.- Returns:
- A
UtilityBill
instance that represents"utility_bill"
. - Throws:
IdentityAssuranceException
- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
-