public class DigitalSignature
extends java.lang.Object
| Constructor and Description |
|---|
DigitalSignature(java.security.KeyStore certificate,
java.lang.String privateKeyPassword,
java.lang.String comments,
DateTime signTime)
Constructor of digitalSignature.
|
| Modifier and Type | Method and Description |
|---|---|
java.security.KeyStore |
getCertificate()
Certificate object that was used to sign the document.
|
java.lang.String |
getComments()
The purpose to signature.
|
java.util.UUID |
getId()
Specifies a GUID which can be cross-referenced with the GUID of the signature line stored in the document content.
|
byte[] |
getImage()
Specifies an image for the digital signature.
|
java.util.UUID |
getProviderId()
Specifies the class ID of the signature provider.
|
DateTime |
getSignTime()
The time when the document was signed.
|
java.lang.String |
getText()
Specifies the text of actual signature in the digital signature.
|
int |
getXAdESType()
XAdES type.
|
boolean |
isValid()
If this digital signature is valid and the document has not been tampered with,
this value will be true.
|
void |
setCertificate(java.security.KeyStore value)
Certificate object that was used to sign the document.
|
void |
setComments(java.lang.String value)
The purpose to signature.
|
void |
setId(java.util.UUID value)
Specifies a GUID which can be cross-referenced with the GUID of the signature line stored in the document content.
|
void |
setImage(byte[] value)
Specifies an image for the digital signature.
|
void |
setProviderId(java.util.UUID value)
Specifies the class ID of the signature provider.
|
void |
setSignTime(DateTime value)
The time when the document was signed.
|
void |
setText(java.lang.String value)
Specifies the text of actual signature in the digital signature.
|
void |
setXAdESType(int value)
XAdES type.
|
public DigitalSignature(java.security.KeyStore certificate,
java.lang.String privateKeyPassword,
java.lang.String comments,
DateTime signTime)
certificate - Certificate object that was used to sign the document.privateKeyPassword - The password for private key.comments - The purpose to signature.signTime - The utc time when the document was signed.public java.security.KeyStore getCertificate()
public void setCertificate(java.security.KeyStore value)
public java.lang.String getComments()
public void setComments(java.lang.String value)
public DateTime getSignTime()
public void setSignTime(DateTime value)
public java.util.UUID getId()
Remarks
When set, it associatesSignatureLine with corresponding DigitalSignature.public void setId(java.util.UUID value)
Remarks
When set, it associatesSignatureLine with corresponding DigitalSignature.public java.lang.String getText()
public void setText(java.lang.String value)
public byte[] getImage()
public void setImage(byte[] value)
public java.util.UUID getProviderId()
Remarks
The cryptographic service provider (CSP) is an independent software module that actually performs cryptography algorithms for authentication, encoding, and encryption. Microsoft Office reserves the value of {00000000-0000-0000-0000-000000000000} for its default signature provider, and {000CD6A4-0000-0000-C000-000000000046} for its East Asian signature provider. The GUID of the additionally installed provider should be obtained from the documentation shipped with the provider.public void setProviderId(java.util.UUID value)
Remarks
The cryptographic service provider (CSP) is an independent software module that actually performs cryptography algorithms for authentication, encoding, and encryption. Microsoft Office reserves the value of {00000000-0000-0000-0000-000000000000} for its default signature provider, and {000CD6A4-0000-0000-C000-000000000046} for its East Asian signature provider. The GUID of the additionally installed provider should be obtained from the documentation shipped with the provider.public boolean isValid()
public int getXAdESType()
See XAdESType.
public void setXAdESType(int value)
See XAdESType.
See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.