Class ElectronicRecordEvidence
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.ElectronicRecordEvidence
-
- All Implemented Interfaces:
net.minidev.json.JSONAware
public class ElectronicRecordEvidence extends IdentityEvidence
Electronic record used as identity evidence.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.2.
-
-
Constructor Summary
Constructors Constructor Description ElectronicRecordEvidence(ValidationMethod validationMethod, VerificationMethod verificationMethod, IdentityVerifier verifier, DateWithTimeZoneOffset time, ElectronicRecordDetails recordDetails, List<Attachment> attachments)
Creates a new electronic record evidence.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
ElectronicRecordDetails
getRecordDetails()
Returns the electronic record details.ValidationMethod
getValidationMethod()
Returns the electronic record validation method.VerificationMethod
getVerificationMethod()
Returns the person verification method.DateWithTimeZoneOffset
getVerificationTime()
Returns the electronic record verification timestamp.IdentityVerifier
getVerifier()
Returns the optional verifier if not the OpenID provider itself.int
hashCode()
static ElectronicRecordEvidence
parse(net.minidev.json.JSONObject jsonObject)
Parses an electronic record evidence from the specified JSON object.net.minidev.json.JSONObject
toJSONObject()
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
-
ElectronicRecordEvidence
public ElectronicRecordEvidence(ValidationMethod validationMethod, VerificationMethod verificationMethod, IdentityVerifier verifier, DateWithTimeZoneOffset time, ElectronicRecordDetails recordDetails, List<Attachment> attachments)
Creates a new electronic record evidence.- Parameters:
validationMethod
- The eletronic record validation method,null
if not specified.verificationMethod
- The person verification method,null
if not specified.verifier
- Optional verifier if not the OpenID provider itself,null
if none.time
- The electronic record verification timestamp,null
if not specified.recordDetails
- The electronic record details,null
if not specified.attachments
- The optional attachments,null
if not specified.
-
-
Method Detail
-
getValidationMethod
public ValidationMethod getValidationMethod()
Returns the electronic record validation method.- Returns:
- The electronic record validation method,
null
if not specified.
-
getVerificationMethod
public VerificationMethod getVerificationMethod()
Returns the person verification method.- Returns:
- The person verification method,
null
if 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,
null
if none.
-
getVerificationTime
public DateWithTimeZoneOffset getVerificationTime()
Returns the electronic record verification timestamp.- Returns:
- The electronic record verification timestamp,
null
if not specified.
-
getRecordDetails
public ElectronicRecordDetails getRecordDetails()
Returns the electronic record details.- Returns:
- The electronic record details,
null
if not specified.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Description copied from class:IdentityEvidence
Returns a JSON object representation of this evidence.- Overrides:
toJSONObject
in classIdentityEvidence
- Returns:
- The JSON object.
-
parse
public static ElectronicRecordEvidence parse(net.minidev.json.JSONObject jsonObject) throws ParseException
Parses an electronic record evidence from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The electronic record evidence.
- Throws:
ParseException
- If parsing failed.
-
-