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
public class ElectronicSignatureEvidence extends IdentityEvidence
Electronic signature used as identity evidence.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.1.5.
-
-
Constructor Summary
Constructors Constructor Description ElectronicSignatureEvidence(SignatureType signatureType, Issuer issuer, SerialNumber certificateSerialNumber, DateWithTimeZoneOffset createdAt, List<Attachment> attachments)Creates a new signature used as identity evidence.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SerialNumbergetCertificateSerialNumber()Returns the certificate serial number.DateWithTimeZoneOffsetgetCreationTime()Returns The signature creation time.IssuergetIssuer()Returns the signature issuer.SignatureTypegetSignatureType()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.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
-
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 Detail
-
getSignatureType
public SignatureType getSignatureType()
Returns the signature type.- Returns:
- The signature type.
-
getIssuer
public Issuer getIssuer()
Returns the signature issuer.- Returns:
- The signature issuer,
nullif not specified.
-
getCertificateSerialNumber
public SerialNumber getCertificateSerialNumber()
Returns the certificate serial number.- Returns:
- The certificate serial number string,
nullif not specified.
-
getCreationTime
public DateWithTimeZoneOffset getCreationTime()
Returns The signature creation time.- Returns:
- The signature creation time,
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 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.
-
-