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 TypeMethodDescriptionbooleanReturns the certificate serial number.Returns The signature creation time.Returns the signature issuer.Returns the signature type.inthashCode()static ElectronicSignatureEvidenceparse(net.minidev.json.JSONObject jsonObject) Parses a new signature evidence from the specified JSON object.net.minidev.json.JSONObjectReturns 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,nullif not specified.certificateSerialNumber- The certificate serial number,nullif not specified.createdAt- The signature creation time,nullif not specified.attachments- The optional attachments,nullif not specified.
-
-
Method Details
-
getSignatureType
Returns the signature type.- Returns:
- The signature type.
-
getIssuer
Returns the signature issuer.- Returns:
- The signature issuer,
nullif not specified.
-
getCertificateSerialNumber
Returns the certificate serial number.- Returns:
- The certificate serial number string,
nullif not specified.
-
getCreationTime
Returns The signature creation time.- Returns:
- The signature creation time,
nullif not specified.
-
toJSONObject
Description copied from class:IdentityEvidenceReturns a JSON object representation of this evidence.- Overrides:
toJSONObjectin 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.
-