Class ElectronicSignatureEvidence
java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.evidences.IdentityEvidence
com.nimbusds.openid.connect.sdk.assurance.evidences.ElectronicSignatureEvidence
- All Implemented Interfaces:
net.minidev.json.JSONAware
Electronic signature used as identity evidence.
Related specifications:
- OpenID Connect for Identity Assurance 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionElectronicSignatureEvidence
(SignatureType signatureType, Issuer issuer, SerialNumber certificateSerialNumber, DateWithTimeZoneOffset createdAt, List<Attachment> attachments) Creates a new signature used as identity evidence. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the certificate serial number.Returns The signature creation time.Returns the signature issuer.Returns the signature type.int
hashCode()
static ElectronicSignatureEvidence
parse
(net.minidev.json.JSONObject jsonObject) Parses a new signature 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
-
ElectronicSignatureEvidence
public ElectronicSignatureEvidence(SignatureType signatureType, Issuer issuer, SerialNumber certificateSerialNumber, DateWithTimeZoneOffset createdAt, List<Attachment> attachments) Creates a new signature used as identity evidence.- Parameters:
signatureType
- The signature type. Must not benull
.issuer
- The signature issuer,null
if not specified.certificateSerialNumber
- The certificate serial number,null
if not specified.createdAt
- The signature creation time,null
if not specified.attachments
- The optional attachments,null
if not specified.
-
-
Method Details
-
getSignatureType
Returns the signature type.- Returns:
- The signature type.
-
getIssuer
Returns the signature issuer.- Returns:
- The signature issuer,
null
if not specified.
-
getCertificateSerialNumber
Returns the certificate serial number.- Returns:
- The certificate serial number string,
null
if not specified.
-
getCreationTime
Returns The signature creation time.- Returns:
- The signature creation time,
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
public static ElectronicSignatureEvidence parse(net.minidev.json.JSONObject jsonObject) throws ParseException Parses a new signature evidence from the specified JSON object.- Parameters:
jsonObject
- The JSON object. Must not benull
.- Returns:
- The signature evidence.
- Throws:
ParseException
- If parsing failed.
-