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

ConstructorDescription
ValidationOptionsCreates an instance of {@link ValidationOptions} class.

Methods

MethodDescription
getCheckCertificateChainGets 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}.
getRequestTimeoutGets 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.
getValidationMethodGets or sets the method used to validate a certificate.
getValidationModeGets or sets the mode of validation for digital signatures in a PDF document. The ValidationMode property determines the strictness of the validation process.
setCheckCertificateChainGets 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}.
setRequestTimeoutGets 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.
setValidationMethodGets or sets the method used to validate a certificate.
setValidationModeGets 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:

ParameterTypeDescription
valueboolean 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:

ParameterTypeDescription
valueint value

setValidationMethod

public final void setValidationMethod(int value)

Gets or sets the method used to validate a certificate.

Parameters:

ParameterTypeDescription
valueValidationMethod 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:

ParameterTypeDescription
valueValidationMode element