All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aspose.cells.DigitalSignature.html Maven / Gradle / Ivy

There is a newer version: 23.1
Show newest version





DigitalSignature




com.aspose.cells
Class DigitalSignature

java.lang.Object
    extended by com.aspose.cells.DigitalSignature

public class DigitalSignature 
extends java.lang.Object

Signature in file.


Property Getters/Setters Summary
System.Security.Cryptography.X509Certificates.X509Certificate2getCertificate()
           Certificate object that was used to sign the document.
java.lang.StringgetComments()
voidsetComments(java.lang.String)
           The purpose to signature.
java.util.UUIDgetId()
voidsetId(java.util.UUID)
           Specifies a GUID which can be cross-referenced with the GUID of the signature line stored in the document content. Default value is Empty (all zeroes) Guid.
byte[]getImage()
voidsetImage(byte[])
           Specifies an image for the digital signature. Default value is null.
booleanisValid()
           If this digital signature is valid and the document has not been tampered with, this value will be true.
java.util.UUIDgetProviderId()
voidsetProviderId(java.util.UUID)
           Specifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid.
com.aspose.cells.DateTimegetSignTime()
voidsetSignTime(com.aspose.cells.DateTime)
           The time when the document was signed.
java.lang.StringgetText()
voidsetText(java.lang.String)
           Specifies the text of actual signature in the digital signature. Default value is Empty.
intgetXAdESType()
voidsetXAdESType(int)
           XAdES type. Default value is None(XAdES is off). The value of the property is XAdESType integer constant.
 

Property Getters/Setters Detail

getCertificate

public System.Security.Cryptography.X509Certificates.X509Certificate2 getCertificate()
Certificate object that was used to sign the document.

getComments/setComments

public java.lang.String getComments() / public void setComments(java.lang.String value)
The purpose to signature.

setComments

public void setComments(java.lang.String value)
The purpose to signature.

getSignTime/setSignTime

public com.aspose.cells.DateTime getSignTime() / public void setSignTime(com.aspose.cells.DateTime value)
The time when the document was signed.

setSignTime

public void setSignTime(com.aspose.cells.DateTime value)
The time when the document was signed.

getId/setId

public java.util.UUID getId() / public 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. Default value is Empty (all zeroes) Guid. When set, it associates SignatureLine with corresponding DigitalSignature.

setId

public 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. Default value is Empty (all zeroes) Guid. When set, it associates SignatureLine with corresponding DigitalSignature.

getText/setText

public java.lang.String getText() / public void setText(java.lang.String value)
Specifies the text of actual signature in the digital signature. Default value is Empty.

setText

public void setText(java.lang.String value)
Specifies the text of actual signature in the digital signature. Default value is Empty.

getImage/setImage

public byte[] getImage() / public void setImage(byte[] value)
Specifies an image for the digital signature. Default value is null.

setImage

public void setImage(byte[] value)
Specifies an image for the digital signature. Default value is null.

getProviderId/setProviderId

public java.util.UUID getProviderId() / public void setProviderId(java.util.UUID value)
Specifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid. 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.

setProviderId

public void setProviderId(java.util.UUID value)
Specifies the class ID of the signature provider. Default value is Empty (all zeroes) Guid. 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.

isValid

public boolean isValid()
If this digital signature is valid and the document has not been tampered with, this value will be true.

getXAdESType/setXAdESType

public int getXAdESType() / public void setXAdESType(int value)
XAdES type. Default value is None(XAdES is off). The value of the property is XAdESType integer constant.

setXAdESType

public void setXAdESType(int value)
XAdES type. Default value is None(XAdES is off). The value of the property is XAdESType integer constant.

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy