ValidationResult

Inheritance: java.lang.Object, com.aspose.pdf.security.certificatevalidation.ValidationResult

public final class ValidationResult extends Object

Represents the result of a validation process for a certificate. The ValidationResult class provides information about the outcome of validating a certificate, including its status and a message describing any issues encountered during the validation.

Constructors

ConstructorDescription
ValidationResultCreates an instance of {@link ValidationResult} class.

Methods

MethodDescription
getMessageRepresents the message associated with the validation result. The Message property provides additional context or information about the state of the validation result.
getStatusGets the status of the validation process for a certificate. The Status property indicates the outcome of the certificate validation. Possible values are defined in the {@link ValidationStatus} enumeration, such as Valid, Invalid, or Undefined. It provides an insight into whether the certificate passed the validation checks or not.
setMessageRepresents the message associated with the validation result. The Message property provides additional context or information about the state of the validation result.
setStatusGets the status of the validation process for a certificate. The Status property indicates the outcome of the certificate validation. Possible values are defined in the {@link ValidationStatus} enumeration, such as Valid, Invalid, or Undefined. It provides an insight into whether the certificate passed the validation checks or not.

ValidationResult

public ValidationResult()

Creates an instance of {@link ValidationResult} class.

getMessage

public final String getMessage()

Represents the message associated with the validation result. The Message property provides additional context or information about the state of the validation result.

Returns: String value

getStatus

public final int getStatus()

Gets the status of the validation process for a certificate. The Status property indicates the outcome of the certificate validation. Possible values are defined in the {@link ValidationStatus} enumeration, such as Valid, Invalid, or Undefined. It provides an insight into whether the certificate passed the validation checks or not.

Returns: ValidationStatus element

setMessage

Represents the message associated with the validation result. The Message property provides additional context or information about the state of the validation result.

setStatus

public final void setStatus(int value)

Gets the status of the validation process for a certificate. The Status property indicates the outcome of the certificate validation. Possible values are defined in the {@link ValidationStatus} enumeration, such as Valid, Invalid, or Undefined. It provides an insight into whether the certificate passed the validation checks or not.

Parameters:

ParameterTypeDescription
valueValidationStatus element