Class UtilityBillEvidence
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.UtilityBillEvidence
-
- All Implemented Interfaces:
net.minidev.json.JSONAware
@Immutable public final class UtilityBillEvidence extends IdentityEvidence
Utility bill used as identity evidence.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 4.1.1.
-
-
Constructor Summary
Constructors Constructor Description UtilityBillEvidence(String providerName, Address providerAddress, SimpleDate date)
Creates a new utility bill used as identity evidence.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleDate
getUtilityBillDate()
Returns the utility bill date.Address
getUtilityProviderAddress()
Returns the utility provider address details.String
getUtilityProviderName()
The utility provider name.static UtilityBillEvidence
parse(net.minidev.json.JSONObject jsonObject)
Parses a utility bill evidence from the specified JSON object.net.minidev.json.JSONObject
toJSONObject()
Returns a JSON object representation of this evidence.-
Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
ensureType, getEvidenceType, toIDDocumentEvidence, toJSONString, toQESEvidence, toUtilityBillEvidence
-
-
-
-
Constructor Detail
-
UtilityBillEvidence
public UtilityBillEvidence(String providerName, Address providerAddress, SimpleDate date)
Creates a new utility bill used as identity evidence.- Parameters:
providerName
- The utility provider name,null
if not specified.providerAddress
- The utility provider address details,null
if not specified.date
- The utility bill date,null
if not specified.
-
-
Method Detail
-
getUtilityProviderName
public String getUtilityProviderName()
The utility provider name.- Returns:
- The utility provider name,
null
if not specified.
-
getUtilityProviderAddress
public Address getUtilityProviderAddress()
Returns the utility provider address details.- Returns:
- The utility provider address details,
null
if not specified.
-
getUtilityBillDate
public SimpleDate getUtilityBillDate()
Returns the utility bill date.- Returns:
- The utility bill date,
null
if not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Description copied from class:IdentityEvidence
Returns a JSON object representation of this evidence.- Overrides:
toJSONObject
in classIdentityEvidence
- Returns:
- The JSON object.
-
parse
public static UtilityBillEvidence parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses a utility bill evidence from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The utility bill evidence.
- Throws:
ParseException
- If parsing failed.
-
-