DigitalVBA
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.signature.domain.extensions.signoptions.SignatureExtension
public class DigitalVBA extends SignatureExtension
Represents digital signature for Spreadsheets VBA projects. It provides ability to sign VBA project at specific Spreadsheets document formats like Xlsm or Xltm. If several DigitalVBA extensions are added to DigitalSignOptions.Extensions only first is involved in document signing.
| Constructor | Description |
|---|---|
| DigitalVBA(String certificateFilePath, String password) | Initializes a new instance of the DigitalVBA class with certificate file. |
| DigitalVBA(InputStream certificateStream, String password) | Initializes a new instance of the DigitalVBA class with certificate stream. |
| Method | Description |
|---|---|
| getComments() | Gets or sets the signature comments. |
| setComments(String value) | Gets or sets the signature comments. |
| getPassword() | Gets or sets the password of digital certificate. |
| setPassword(String value) | Gets or sets the password of digital certificate. |
| getSignOnlyVBAProject() | Gets or sets setting of only VBA project signing. |
| setSignOnlyVBAProject(boolean value) | Gets or sets setting of only VBA project signing. |
| getCertificateFilePath() | Gets digital certificate file path. |
| getCertificateStream() | Gets digital certificate stream. |
| release() | Override method to clean up resources after signing. |
public DigitalVBA(String certificateFilePath, String password)
Initializes a new instance of the DigitalVBA class with certificate file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| certificateFilePath | java.lang.String | Digital certificate file path |
| password | java.lang.String | Digital certificate password |
public DigitalVBA(InputStream certificateStream, String password)
Initializes a new instance of the DigitalVBA class with certificate stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| certificateStream | java.io.InputStream | Digital Certificate stream |
| password | java.lang.String | Digital certificate password |
public final String getComments()
Gets or sets the signature comments.
Returns: java.lang.String
public final void setComments(String value)
Gets or sets the signature comments.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final String getPassword()
Gets or sets the password of digital certificate.
Returns: java.lang.String
public final void setPassword(String value)
Gets or sets the password of digital certificate.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String |
public final boolean getSignOnlyVBAProject()
Gets or sets setting of only VBA project signing. If set to true, the SpreadSheet document will not be signed, but the VBA project will be signed.
Returns: boolean
public final void setSignOnlyVBAProject(boolean value)
Gets or sets setting of only VBA project signing. If set to true, the SpreadSheet document will not be signed, but the VBA project will be signed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean |
public final String getCertificateFilePath()
Gets digital certificate file path. This property is used only if CertificateStream is not specified.
Returns: java.lang.String
public final InputStream getCertificateStream()
Gets digital certificate stream. If this property is specified it is always used instead CertificateFilePath.
Returns: java.io.InputStream
public void release()
Override method to clean up resources after signing.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.