Gets or sets the digital certificate file path.
This property is used only if CertificateStream is not specified.
Returns:
java.lang.String
setCertificateFilePath(String value)
public void setCertificateFilePath(String value)
Gets or sets the digital certificate file GUID.
This property is used only if CertificateStream is not specified.
Parameters:
Parameter
Type
Description
value
java.lang.String
getCertificateStream()
public final InputStream getCertificateStream()
Gets or sets digital certificate stream.
If this property is specified it is always used instead CertificateGuid.
Returns:
java.io.InputStream
setCertificateStream(InputStream value)
public final void setCertificateStream(InputStream value)
Gets or sets digital certificate stream.
If this property is specified it is always used instead CertificateGuid.
Parameters:
Parameter
Type
Description
value
java.io.InputStream
getVisible()
public final boolean getVisible()
Gets or sets the visibility of signature.
Returns:
boolean
setVisible(boolean value)
public final void setVisible(boolean value)
Gets or sets the visibility of signature.
Parameters:
Parameter
Type
Description
value
boolean
getUseLtv()
public final boolean getUseLtv()
Gets/sets LTV (Long Term Validation) validation flag.
Returns:
boolean
setUseLtv(boolean value)
public final void setUseLtv(boolean value)
Gets/sets LTV (Long Term Validation) validation flag.
Parameters:
Parameter
Type
Description
value
boolean
getAllowExpired()
public final boolean getAllowExpired()
Gets or sets a flag that allows signing with a certificate whose validity period has ended.
The default value is false: signing with an expired certificate throws
GroupDocsSignatureException
,
and the document is not signed.
Validators report a signature made with an expired certificate as not valid. Set this property to true only when
you need such a signature anyway, for example to test with an old certificate. The document is then signed, and a
warning is written to the logger set in
SignatureSettings
.
The certificate is compared with the current time in UTC, not with
DigitalSignature.SignTime
. The flag
applies to the certificate given by
CertificateFilePath
,
CertificateStream
or
Signature
,
and, when a spreadsheet is signed, to the certificate of the first
DigitalVBA
extension. Digital
signatures of images do not use a certificate and are not checked. A certificate whose validity period has not
started yet is controlled by
AllowNotYetValid
.
Returns:
boolean
setAllowExpired(boolean value)
public final void setAllowExpired(boolean value)
Gets or sets a flag that allows signing with a certificate whose validity period has ended.
The default value is false. See #getAllowExpired().getAllowExpired().
Parameters:
Parameter
Type
Description
value
boolean
getAllowNotYetValid()
public final boolean getAllowNotYetValid()
Gets or sets a flag that allows signing with a certificate whose validity period has not started yet.
The default value is false: signing with such a certificate throws
GroupDocsSignatureException
,
and the document is not signed.
Validators report a signature made before the certificate becomes valid as not valid. Such a certificate was
usually issued for a later date, or the computer’s clock is wrong. When this property is true, the document is
signed, and a warning is written to the logger set in
SignatureSettings
.
The certificate is compared with the current time in UTC. The flag applies to the same certificates as
AllowExpired
, which controls certificates whose validity period has ended.
Returns:
boolean
setAllowNotYetValid(boolean value)
public final void setAllowNotYetValid(boolean value)
Gets or sets a flag that allows signing with a certificate whose validity period has not started yet.
The default value is false. See #getAllowNotYetValid().getAllowNotYetValid().
Parameters:
Parameter
Type
Description
value
boolean
getCustomSignHash()
public final ICustomSignHash getCustomSignHash()
Gets or sets a custom hash-signing implementation, allowing callers to plug in their own
digital signing logic (HSM, remote signer, software keystore, etc.).
XAdES type
XAdESType
. Default value is None (XAdES is off).
At this moment XAdES signature type is supported only for Spreadsheet documents under .NET Framework only (not under .NET Standard)
Returns:
int
setXAdESType(int value)
public final void setXAdESType(int value)
XAdES type
XAdESType
. Default value is None (XAdES is off).
At this moment XAdES signature type is supported only for Spreadsheet documents under .NET Framework only (not under .NET Standard)
Parameters:
Parameter
Type
Description
value
int
getSignatureLineId()
public final UUID getSignatureLineId()
Returns:
java.util.UUID
setSignatureLineId(UUID value)
public final void setSignatureLineId(UUID value)
Parameters:
Parameter
Type
Description
value
java.util.UUID
toString()
public String toString()
Override string conversion.
Returns:
java.lang.String -
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.