Class IDDocumentDescription
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.IDDocumentDescription
-
- All Implemented Interfaces:
net.minidev.json.JSONAware
public class IDDocumentDescription extends Object implements net.minidev.json.JSONAware
Identity document description.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 4.1.1.1.
-
-
Constructor Summary
Constructors Constructor Description IDDocumentDescription(IDDocumentType type, String number, String issuerName, CountryCode issuerCountry, SimpleDate dateOfIssuance, SimpleDate dateOfExpiry)Creates a new identity document description.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SimpleDategetDateOfExpiry()Returns the date of expiry.SimpleDategetDateOfIssuance()Returns the date of issuance.CountryCodegetIssuerCountry()Returns the issuer country.StringgetIssuerName()Returns the issuer name.StringgetNumber()Returns the identity document number.IDDocumentTypegetType()Returns the identity document type.inthashCode()static IDDocumentDescriptionparse(net.minidev.json.JSONObject jsonObject)Parses an identity document description from the specified JSON object.net.minidev.json.JSONObjecttoJSONObject()Returns a JSON object representation of this identity document description.StringtoJSONString()StringtoString()
-
-
-
Constructor Detail
-
IDDocumentDescription
public IDDocumentDescription(IDDocumentType type, String number, String issuerName, CountryCode issuerCountry, SimpleDate dateOfIssuance, SimpleDate dateOfExpiry)
Creates a new identity document description.- Parameters:
type- The type. Must not benull.number- The number. Must not benull.issuerName- The issuer name. Must not benull.issuerCountry- The issuer country. Must not benull.dateOfIssuance- The date of issuance. Must not benull.dateOfExpiry- The date of expiry. Must not benull.
-
-
Method Detail
-
getType
public IDDocumentType getType()
Returns the identity document type.- Returns:
- The identity document type.
-
getNumber
public String getNumber()
Returns the identity document number.- Returns:
- The identity document number.
-
getIssuerName
public String getIssuerName()
Returns the issuer name.- Returns:
- The issuer name.
-
getIssuerCountry
public CountryCode getIssuerCountry()
Returns the issuer country.- Returns:
- The issuer country code.
-
getDateOfIssuance
public SimpleDate getDateOfIssuance()
Returns the date of issuance.- Returns:
- The date of issuance.
-
getDateOfExpiry
public SimpleDate getDateOfExpiry()
Returns the date of expiry.- Returns:
- The date of expiry.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation of this identity document description.- Returns:
- The JSON object.
-
toJSONString
public String toJSONString()
- Specified by:
toJSONStringin interfacenet.minidev.json.JSONAware
-
parse
public static IDDocumentDescription parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses an identity document description from the specified JSON object.- Parameters:
jsonObject- The JSON object. Must not benull.- Returns:
- The identity document description.
- Throws:
ParseException- If parsing failed.
-
-