Class DocumentDetails
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.DocumentDetails
-
public class DocumentDetails extends Object
Document details.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.1.
-
-
Constructor Summary
Constructors Constructor Description DocumentDetails(DocumentType type, DocumentNumber documentNumber, PersonalNumber personalNumber, SerialNumber serialNumber, SimpleDate dateOfIssuance, SimpleDate dateOfExpiry, DocumentIssuer issuer)
Creates a new document details instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
SimpleDate
getDateOfExpiry()
Returns the date of expiry.SimpleDate
getDateOfIssuance()
Returns the date of issuance.DocumentNumber
getDocumentNumber()
Returns the document number.DocumentIssuer
getIssuer()
Returns the document issuer information.PersonalNumber
getPersonalNumber()
Returns the personal number.SerialNumber
getSerialNumber()
Returns the serial number.DocumentType
getType()
Returns the document type.int
hashCode()
static DocumentDetails
parse(net.minidev.json.JSONObject jsonObject)
Parses a document details instance from the specified JSON object.net.minidev.json.JSONObject
toJSONObject()
Returns a JSON object representation of this document details instance.
-
-
-
Constructor Detail
-
DocumentDetails
public DocumentDetails(DocumentType type, DocumentNumber documentNumber, PersonalNumber personalNumber, SerialNumber serialNumber, SimpleDate dateOfIssuance, SimpleDate dateOfExpiry, DocumentIssuer issuer)
Creates a new document details instance.- Parameters:
type
- The document type. Must not benull
.documentNumber
- The document number,null
if not specified.personalNumber
- The personal number,null
if not specified.serialNumber
- The serial number,null
if not specified.dateOfIssuance
- The date of issuance,null
if not specified.dateOfExpiry
- The date of expiry,null
if not specified.issuer
- The document issuer information,null
if not specified.
-
-
Method Detail
-
getType
public DocumentType getType()
Returns the document type.- Returns:
- The document type.
-
getDocumentNumber
public DocumentNumber getDocumentNumber()
Returns the document number.- Returns:
- The document number,
null
if not specified.
-
getPersonalNumber
public PersonalNumber getPersonalNumber()
Returns the personal number.- Returns:
- The personal number,
null
if not specified.
-
getSerialNumber
public SerialNumber getSerialNumber()
Returns the serial number.- Returns:
- The serial number,
null
if not specified.
-
getDateOfIssuance
public SimpleDate getDateOfIssuance()
Returns the date of issuance.- Returns:
- The date of issuance,
null
if not specified.
-
getDateOfExpiry
public SimpleDate getDateOfExpiry()
Returns the date of expiry.- Returns:
- The date of expiry,
null
if not specified.
-
getIssuer
public DocumentIssuer getIssuer()
Returns the document issuer information.- Returns:
- The document issuer information,
null
if not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Returns a JSON object representation of this document details instance.- Returns:
- The JSON object.
-
parse
public static DocumentDetails parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses a document details instance from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The document details instance.
- Throws:
ParseException
- If parsing failed.
-
-