ValidationOptions
Inheritance: java.lang.Object, com.aspose.pdf.security.certificatevalidation.ValidationOptions
public final class ValidationOptions extends Object
Represents options for validating a digital signature in a PDF document.
Constructors
| Constructor | Description |
|---|---|
| ValidationOptions | Creates an instance of {@link ValidationOptions} class. |
Methods
| Method | Description |
|---|---|
| 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 {@link 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 {@code false}. The default value is {@code false}. |
| 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. |
| getValidationMethod | Gets or sets the method used to validate a certificate. |
| 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. |
| setCheckCertificateChain | 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 {@link 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 {@code false}. The default value is {@code false}. |
| setRequestTimeout | 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. |
| setValidationMethod | Gets or sets the method used to validate a certificate. |
| setValidationMode | Gets or sets the mode of validation for digital signatures in a PDF document. The ValidationMode property determines the strictness of the validation process. |
ValidationOptions
public ValidationOptions()
Creates an instance of {@link ValidationOptions} class.
getCheckCertificateChain
public 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 {@link 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 {@code false}. The default value is {@code false}.
Returns: boolean value
getRequestTimeout
public 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.
Returns: int value
getValidationMethod
public final int getValidationMethod()
Gets or sets the method used to validate a certificate.
Returns: ValidationMethod element
getValidationMode
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.
Returns: ValidationMode element
setCheckCertificateChain
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 {@link 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 {@code false}. The default value is {@code false}.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setRequestTimeout
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |
setValidationMethod
public final void setValidationMethod(int value)
Gets or sets the method used to validate a certificate.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ValidationMethod element |
setValidationMode
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | ValidationMode element |