public class DigitalSignature extends Object
Digital Signature
Constructor and Description |
---|
DigitalSignature() |
DigitalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate2 certificate)
Create Digital Signature with specified certificate
|
DigitalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Store Store)
Create Digital Signature based on specified X509 Store and index of certificate
|
DigitalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Store Store,
int index)
Create Digital Signature based on specified X509 Store and index of certificate
|
Modifier and Type | Method and Description |
---|---|
KeyStore |
getCertificate()
Certificate of X509Certificate2
|
String |
getComments()
Signing purpose comment.
|
int |
getSignatureType()
Type of the digital signature.
|
Date |
getSignTime()
Time the document was signed.
|
com.aspose.ms.System.DateTime |
getSignTimeInternal() |
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 system X509 Certificates Store
|
void |
setCertificate(KeyStore value)
Certificate of X509Certificate2
|
void |
setComments(String value)
Signing purpose comment.
|
void |
setSignatureType(int value)
Type of the digital signature.
|
void |
setSignTime(Date value)
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(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Store Store) throws Exception
Create Digital Signature based on specified X509 Store and index of certificate
Store
- X509 StoreException
public DigitalSignature(com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Store Store, int index) throws Exception
Create Digital Signature based on specified X509 Store and index of certificate
Store
- X509 Storeindex
- Index of certificateException
public KeyStore getCertificate()
Certificate of X509Certificate2
public void setCertificate(KeyStore value)
Certificate of X509Certificate2
public String getComments()
Signing purpose comment.
public void setComments(String value)
Signing purpose comment.
public boolean isValid()
Keeps true if this digital signature is valid and the document has not been tampered with.
public void setValid(boolean value)
Keeps true if this digital signature is valid and the document has not been tampered with.
public int getSignatureType()
Type of the digital signature.
public void setSignatureType(int value)
Type of the digital signature.
public Date getSignTime()
Time the document was signed.
public com.aspose.ms.System.DateTime getSignTimeInternal()
public void setSignTime(Date value)
Time the document was signed.
public static List<DigitalSignature> loadDigitalSignatures() throws Exception
Load Digital Signatures from system X509 Certificates Store
Exception
Copyright © 2017. All rights reserved.