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,nullif not specified.issuerName- The issuer name,nullif not specified.issuerCountry- The issuer country,nullif not specified.dateOfIssuance- The date of issuance,nullif not specified.dateOfExpiry- The date of expiry,nullif not specified.
-
-
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,
nullif not specified.
-
getIssuerName
public String getIssuerName()
Returns the issuer name.- Returns:
- The issuer name,
nullif not specified.
-
getIssuerCountry
public CountryCode getIssuerCountry()
Returns the issuer country.- Returns:
- The issuer country code,
nullif not specified.
-
getDateOfIssuance
public SimpleDate getDateOfIssuance()
Returns the date of issuance.- Returns:
- The date of issuance,
nullif not specified.
-
getDateOfExpiry
public SimpleDate getDateOfExpiry()
Returns the date of expiry.- Returns:
- The date of expiry,
nullif not specified.
-
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.
-
-