public class DigitalSignature extends BaseSignature
Contains Digital Signature properties.
| Constructor and Description |
|---|
DigitalSignature()
Initialize DigitalSignature with default parameters.
|
DigitalSignature(KeyStore certificate)
Create Digital Signature with specified certificate.
|
| Modifier and Type | Method and Description |
|---|---|
KeyStore |
getCertificate()
Gets or sets the X509 certificate.
|
String |
getComments()
Gets or sets the signing purpose comment.
|
int |
getSignatureType()
Gets or sets the type of the digital signature.
|
Date |
getSignTime()
Gets or sets the time the document was signed.
|
boolean |
isValid()
Keeps true if this digital signature is valid and the document has not been tampered with.
|
static List<DigitalSignature> |
loadDigitalSignatures()
Load Digital Signatures 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 |
setSignatureType(int value)
Gets or sets the type of the digital signature.
|
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.
|
public DigitalSignature()
Initialize DigitalSignature with default parameters.
public DigitalSignature(KeyStore certificate)
Create Digital Signature with specified certificate.
certificate - X509 certificate.public KeyStore getCertificate()
Gets or sets the X509 certificate.
public String getComments()
Gets or sets the signing purpose comment.
public int getSignatureType()
Gets or sets the type of the digital signature.
public Date getSignTime()
Gets or sets the time the document was signed.
public 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 Signatures from all system X509 Certificates Stores.
DigitalSignature Digital Signatures.Exceptionpublic void setCertificate(KeyStore value)
Gets or sets the X509 certificate.
public void setComments(String value)
Gets or sets the signing purpose comment.
public void setSignatureType(int value)
Gets or sets the type of the digital signature.
public void setSignTime(Date value)
Gets or sets the time the document was signed.
public void setValid(boolean value)
Keeps true if this digital signature is valid and the document has not been tampered with.
Copyright © 2018. All rights reserved.