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.
|
int |
getCertificateStoreLocation()
Specifies the store location of the certificate
|
int |
getCertificateStoreName()
Specifies the store name of the 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 |
setCertificateStoreLocation(int value)
Specifies the store location of the certificate
|
void |
setCertificateStoreName(int value)
Specifies the store name of the 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 final KeyStore getCertificate()
Gets or sets the X509 certificate.
public final int getCertificateStoreLocation()
Specifies the store location of the certificate
public final int getCertificateStoreName()
Specifies the store name of the certificate.
public final String getComments()
Gets or sets the signing purpose comment.
public final int getSignatureType()
Gets or sets the type of the digital signature.
public final Date getSignTime()
Gets or sets the time the document was signed.
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 Signatures 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 setCertificateStoreLocation(int value)
Specifies the store location of the certificate
public final void setCertificateStoreName(int value)
Specifies the store name of the certificate.
public final void setComments(String value)
Gets or sets the signing purpose comment.
public final void setSignatureType(int value)
Gets or sets the type of the digital signature.
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.
Copyright © 2019. All rights reserved.