Class DocumentEvidence
java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
com.nimbusds.openid.connect.sdk.assurance.evidences.DocumentEvidence
- All Implemented Interfaces:
net.minidev.json.JSONAware
Document used as identity evidence.
Related specifications:
- OpenID Connect for Identity Assurance 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentEvidence
(ValidationMethod validationMethod, VerificationMethod verificationMethod, IdentityVerificationMethod method, IdentityVerifier verifier, DateWithTimeZoneOffset time, DocumentDetails documentDetails, List<Attachment> attachments) Creates a new document evidence. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the document details.Deprecated.Returns the document validation method.Returns the person verification method.Returns the document verification timestamp.Returns the optional verifier if not the OpenID provider itself.int
hashCode()
static DocumentEvidence
parse
(net.minidev.json.JSONObject jsonObject) Parses a document evidence from the specified JSON object.net.minidev.json.JSONObject
Returns a JSON object representation of this evidence.Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
ensureType, getAttachments, getEvidenceType, toDocumentEvidence, toElectronicRecordEvidence, toElectronicSignatureEvidence, toIDDocumentEvidence, toJSONString, toQESEvidence, toUtilityBillEvidence, toVouchEvidence
-
Constructor Details
-
DocumentEvidence
public DocumentEvidence(ValidationMethod validationMethod, VerificationMethod verificationMethod, IdentityVerificationMethod method, IdentityVerifier verifier, DateWithTimeZoneOffset time, DocumentDetails documentDetails, List<Attachment> attachments) Creates a new document evidence.- Parameters:
validationMethod
- The document validation method,null
if not specified.verificationMethod
- The person verification method,null
if not specified.method
- The alternative coarse identity verification method,null
if not specified.verifier
- Optional verifier if not the OpenID provider itself,null
if none.time
- The document verification timestamp,null
if not specified.documentDetails
- The document details,null
if not specified.attachments
- The optional attachments,null
if not specified.
-
-
Method Details
-
getValidationMethod
Returns the document validation method.- Returns:
- The document validation method,
null
if not specified.
-
getVerificationMethod
Returns the person verification method.- Returns:
- The person verification method,
null
if not specified.
-
getMethod
Deprecated.Returns the alternative coarse identity verification method.- Returns:
- The identity verification method,
null
if not specified.
-
getVerifier
Returns the optional verifier if not the OpenID provider itself.- Returns:
- The optional verifier if not the OpenID provider itself,
null
if none.
-
getVerificationTime
Returns the document verification timestamp.- Returns:
- The document verification timestamp,
null
if not specified.
-
getDocumentDetails
Returns the document details.- Returns:
- The document details,
null
if not specified.
-
toJSONObject
Description copied from class:IdentityEvidence
Returns a JSON object representation of this evidence.- Overrides:
toJSONObject
in classIdentityEvidence
- Returns:
- The JSON object.
-
equals
-
hashCode
-
parse
Parses a document evidence from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The document evidence.
- Throws:
ParseException
- If parsing failed.
-