Class DocumentDetails
java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.evidences.DocumentDetails
Document details.
Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.1.
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentDetails(DocumentType type, DocumentNumber documentNumber, PersonalNumber personalNumber, SerialNumber serialNumber, SimpleDate dateOfIssuance, SimpleDate dateOfExpiry, DocumentIssuer issuer) Creates a new document details instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the date of expiry.Returns the date of issuance.Returns the document number.Returns the document issuer information.Returns the personal number.Returns the serial number.getType()Returns the document type.inthashCode()static DocumentDetailsparse(net.minidev.json.JSONObject jsonObject) Parses a document details instance from the specified JSON object.net.minidev.json.JSONObjectReturns a JSON object representation of this document details instance.
-
Constructor Details
-
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,nullif not specified.personalNumber- The personal number,nullif not specified.serialNumber- The serial number,nullif not specified.dateOfIssuance- The date of issuance,nullif not specified.dateOfExpiry- The date of expiry,nullif not specified.issuer- The document issuer information,nullif not specified.
-
-
Method Details
-
getType
Returns the document type.- Returns:
- The document type.
-
getDocumentNumber
Returns the document number.- Returns:
- The document number,
nullif not specified.
-
getPersonalNumber
Returns the personal number.- Returns:
- The personal number,
nullif not specified.
-
getSerialNumber
Returns the serial number.- Returns:
- The serial number,
nullif not specified.
-
getDateOfIssuance
Returns the date of issuance.- Returns:
- The date of issuance,
nullif not specified.
-
getDateOfExpiry
Returns the date of expiry.- Returns:
- The date of expiry,
nullif not specified.
-
getIssuer
Returns the document issuer information.- Returns:
- The document issuer information,
nullif not specified.
-
toJSONObject
Returns a JSON object representation of this document details instance.- Returns:
- The JSON object.
-
equals
-
hashCode
-
parse
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.
-