public final class ValidationOptions extends Object
Represents options for validating a digital signature in a PDF document.
| Constructor and Description |
|---|
ValidationOptions()
Creates an instance of
ValidationOptions class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCheckCertificateChain()
Gets or sets a value indicating whether the certificate chain
should be checked during the validation process.
|
int |
getRequestTimeout()
Gets or sets the timeout duration, in milliseconds, for network-related operations during the validation process.
|
int |
getValidationMethod()
Gets or sets the method used to validate a certificate.
|
int |
getValidationMode()
Gets or sets the mode of validation for digital signatures in a PDF document.
|
void |
setCheckCertificateChain(boolean value)
Gets or sets a value indicating whether the certificate chain
should be checked during the validation process.
|
void |
setRequestTimeout(int value)
Gets or sets the timeout duration, in milliseconds, for network-related operations during the validation process.
|
void |
setValidationMethod(int value)
Gets or sets the method used to validate a certificate.
|
void |
setValidationMode(int value)
Gets or sets the mode of validation for digital signatures in a PDF document.
|
public ValidationOptions()
Creates an instance of ValidationOptions class.
public final int getValidationMode()
Gets or sets the mode of validation for digital signatures in a PDF document. The ValidationMode property determines the strictness of the validation process.
public final void setValidationMode(int value)
Gets or sets the mode of validation for digital signatures in a PDF document. The ValidationMode property determines the strictness of the validation process.
value - ValidationMode elementpublic final int getValidationMethod()
Gets or sets the method used to validate a certificate.
public final void setValidationMethod(int value)
Gets or sets the method used to validate a certificate.
value - ValidationMethod elementpublic final int getRequestTimeout()
Gets or sets the timeout duration, in milliseconds, for network-related operations during the validation process. The RequestTimeout property defines the maximum time the system should wait for a network response when accessing online resources, such as revocation status or OCSP servers.
public final void setRequestTimeout(int value)
Gets or sets the timeout duration, in milliseconds, for network-related operations during the validation process. The RequestTimeout property defines the maximum time the system should wait for a network response when accessing online resources, such as revocation status or OCSP servers.
value - int valuepublic final boolean getCheckCertificateChain()
Gets or sets a value indicating whether the certificate chain should be checked during the validation process.
When the property is set, the existence of a chain of certificates will be checked,
if it is absent, then the result of the verification will be ValidationStatus.Undefined, which corresponds to the behavior of Adobe Acrobat.
If you just want to check the status of revocation online, then set the field in false.
The default value is false.
public final void setCheckCertificateChain(boolean value)
Gets or sets a value indicating whether the certificate chain should be checked during the validation process.
When the property is set, the existence of a chain of certificates will be checked,
if it is absent, then the result of the verification will be ValidationStatus.Undefined, which corresponds to the behavior of Adobe Acrobat.
If you just want to check the status of revocation online, then set the field in false.
The default value is false.
value - boolean valueCopyright © 2026 Aspose. All Rights Reserved.