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 boolean
equals(Object o)
SerialNumber
getCertificateSerialNumber()
Returns the certificate serial number.DateWithTimeZoneOffset
getCreationTime()
Returns The signature creation time.Issuer
getIssuer()
Returns the signature issuer.SignatureType
getSignatureType()
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
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
-
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 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,
null
if not specified.
-
getCertificateSerialNumber
public SerialNumber getCertificateSerialNumber()
Returns the certificate serial number.- Returns:
- The certificate serial number string,
null
if not specified.
-
getCreationTime
public DateWithTimeZoneOffset getCreationTime()
Returns The signature creation time.- Returns:
- The signature creation time,
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 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.
-
-