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
public class DocumentEvidence extends IdentityEvidence
Document used as identity evidence.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.1.
-
-
Constructor Summary
Constructors Constructor Description DocumentEvidence(ValidationMethod validationMethod, VerificationMethod verificationMethod, IdentityVerificationMethod method, IdentityVerifier verifier, DateWithTimeZoneOffset time, DocumentDetails documentDetails, List<Attachment> attachments)Creates a new document evidence.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object o)DocumentDetailsgetDocumentDetails()Returns the document details.IdentityVerificationMethodgetMethod()Deprecated.ValidationMethodgetValidationMethod()Returns the document validation method.VerificationMethodgetVerificationMethod()Returns the person verification method.DateWithTimeZoneOffsetgetVerificationTime()Returns the document verification timestamp.IdentityVerifiergetVerifier()Returns the optional verifier if not the OpenID provider itself.inthashCode()static DocumentEvidenceparse(net.minidev.json.JSONObject jsonObject)Parses a document evidence from the specified JSON object.net.minidev.json.JSONObjecttoJSONObject()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 Detail
-
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,nullif not specified.verificationMethod- The person verification method,nullif not specified.method- The alternative coarse identity verification method,nullif not specified.verifier- Optional verifier if not the OpenID provider itself,nullif none.time- The document verification timestamp,nullif not specified.documentDetails- The document details,nullif not specified.attachments- The optional attachments,nullif not specified.
-
-
Method Detail
-
getValidationMethod
public ValidationMethod getValidationMethod()
Returns the document validation method.- Returns:
- The document validation method,
nullif not specified.
-
getVerificationMethod
public VerificationMethod getVerificationMethod()
Returns the person verification method.- Returns:
- The person verification method,
nullif not specified.
-
getMethod
@Deprecated public IdentityVerificationMethod getMethod()
Deprecated.Returns the alternative coarse identity verification method.- Returns:
- The identity verification method,
nullif not specified.
-
getVerifier
public IdentityVerifier getVerifier()
Returns the optional verifier if not the OpenID provider itself.- Returns:
- The optional verifier if not the OpenID provider itself,
nullif none.
-
getVerificationTime
public DateWithTimeZoneOffset getVerificationTime()
Returns the document verification timestamp.- Returns:
- The document verification timestamp,
nullif not specified.
-
getDocumentDetails
public DocumentDetails getDocumentDetails()
Returns the document details.- Returns:
- The document details,
nullif not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Description copied from class:IdentityEvidenceReturns a JSON object representation of this evidence.- Overrides:
toJSONObjectin classIdentityEvidence- Returns:
- The JSON object.
-
parse
public static DocumentEvidence parse(net.minidev.json.JSONObject jsonObject) throws ParseException
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.
-
-