public class DigitalSignature extends BaseSignature
Contains Digital signature properties.
Constructor and Description |
---|
DigitalSignature()
Initialize Digital signature with default parameters.
|
DigitalSignature(KeyStore certificate)
Create Digital signature with specified certificate.
|
DigitalSignature(String signatureId)
Initialize Digital signature with known SignatureId.
|
Modifier and Type | Method and Description |
---|---|
Object |
deepClone()
Clone Barcode Signature instance.
|
boolean |
equals(Object signature)
Overwrites Equals method to compare signature properties
|
KeyStore |
getCertificate()
Gets or sets the X509 certificate.
|
String |
getComments()
Gets or sets the signing purpose comment.
|
Date |
getSignTime()
Gets or sets the time the document was signed.
|
String |
getThumbprint()
Gets the thumbprint of a certificate.
|
int |
getXAdESType()
XAdES type
XAdESType . |
int |
hashCode()
Overrides GetHashCode method
|
boolean |
isValid()
Keeps true if this digital signature is valid and the document has not been tampered with.
|
static List<DigitalSignature> |
loadDigitalSignatures()
Load Digital signature from all system X509 Certificates Stores.
|
void |
setCertificate(KeyStore value)
Gets or sets the X509 certificate.
|
void |
setComments(String value)
Gets or sets the signing purpose comment.
|
void |
setSignTime(Date value)
Gets or sets the time the document was signed.
|
void |
setValid(boolean value)
Keeps true if this digital signature is valid and the document has not been tampered with.
|
void |
setXAdESType(int value)
XAdES type
XAdESType . |
getCreatedOn, getDeleted, getHeight, getLeft, getModifiedOn, getPageNumber, getSignatureId, getSignatureType, getTop, getWidth, isSignature, setCreatedOn, setHeight, setLeft, setModifiedOn, setPageNumber, setSignature, setTop, setWidth, supportMetaInfoLayer, toString
public DigitalSignature()
Initialize Digital signature with default parameters.
public DigitalSignature(KeyStore certificate)
Create Digital signature with specified certificate.
certificate
- X509 certificate.public DigitalSignature(String signatureId)
Initialize Digital signature with known SignatureId.
public Object deepClone()
Clone Barcode Signature instance.
deepClone
in class BaseSignature
public boolean equals(Object signature)
Overwrites Equals method to compare signature properties
equals
in class BaseSignature
signature
- Signature object to compare with.public final KeyStore getCertificate()
Gets or sets the X509 certificate.
public final String getComments()
Gets or sets the signing purpose comment.
public final Date getSignTime()
Gets or sets the time the document was signed.
public final String getThumbprint()
Gets the thumbprint of a certificate.
public final int getXAdESType()
XAdES type XAdESType
. Default value is None (XAdES is off).
At this moment XAdES signature type is supported only for Spreadsheet documents.
public int hashCode()
Overrides GetHashCode method
hashCode
in class BaseSignature
public final boolean isValid()
Keeps true if this digital signature is valid and the document has not been tampered with.
public static List<DigitalSignature> loadDigitalSignatures() throws Exception
Load Digital signature from all system X509 Certificates Stores.
DigitalSignature
Digital Signatures.Exception
public final void setCertificate(KeyStore value)
Gets or sets the X509 certificate.
public final void setComments(String value)
Gets or sets the signing purpose comment.
public final void setSignTime(Date value)
Gets or sets the time the document was signed.
public final void setValid(boolean value)
Keeps true if this digital signature is valid and the document has not been tampered with.
public final void setXAdESType(int value)
XAdES type XAdESType
. Default value is None (XAdES is off).
At this moment XAdES signature type is supported only for Spreadsheet documents.