DigitalVBA
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.
Constructors
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. |
Methods
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. |
DigitalVBA(String certificateFilePath, String password)
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 |
DigitalVBA(InputStream certificateStream, String 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 |
getComments()
public final String getComments()
Gets or sets the signature comments.
Returns: java.lang.String
setComments(String value)
public final void setComments(String value)
Gets or sets the signature comments.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getPassword()
public final String getPassword()
Gets or sets the password of digital certificate.
Returns: java.lang.String
setPassword(String value)
public final void setPassword(String value)
Gets or sets the password of digital certificate.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
getSignOnlyVBAProject()
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
setSignOnlyVBAProject(boolean value)
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 |
getCertificateFilePath()
public final String getCertificateFilePath()
Gets digital certificate file path. This property is used only if CertificateStream is not specified.
Returns: java.lang.String
getCertificateStream()
public final InputStream getCertificateStream()
Gets digital certificate stream. If this property is specified it is always used instead CertificateFilePath.
Returns: java.io.InputStream
release()
public void release()
Override method to clean up resources after signing.