CWTLSValidationResult Class Reference

#include <wtlscertchain.h>

Link against: wtlscert.lib

class CWTLSValidationResult : public CBase

Inherits from

  • CWTLSValidationResult

Detailed Description

Encapsulates the results of the validation process.

It is returned to client code, which can examine it. Client code takes ownership of it.

Constructor & Destructor Documentation

~CWTLSValidationResult ( )

IMPORT_C~CWTLSValidationResult()

Destructor.

Frees all resources owned by the object, prior to its destruction.

Member Function Documentation

AppendWarningL ( TWTLSValidationStatus )

voidAppendWarningL(TWTLSValidationStatusaWarning)

Adds a warning to the validation.

Parameters
aWarningThe validation status object to be added.

Error ( )

IMPORT_C const TWTLSValidationStatusError()const

Gets the error status of the operation.

Any errors here are considered fatal: validation has failed.

Return Value
The error status of the operation.

NewL ( )

IMPORT_C CWTLSValidationResult *NewL()[static]

Creates a new CWTLSValidationResult object.

Return Value
The new WTLS Validation Result object.

NewLC ( )

IMPORT_C CWTLSValidationResult *NewLC()[static]

Creates a new CWTLSValidationResult object and puts a pointer to it on the cleanup stack.

Return Value
The new WTLS Validation Result object.

Reset ( )

voidReset()

Resets the validation result object to its default values.

SetError ( const TValidationError, const TInt )

voidSetError(const TValidationErroraError,
const TIntaCert
)

Sets the error.

Parameters
aErrorThe error type that occurred when validating the certificate chain.
aCertThe index number for the certificate that gave rise to the error.

Warnings ( )

IMPORT_C const CArrayFixFlat< TWTLSValidationStatus > &Warnings()const

Gets an array of any warnings generated.

The warnings may or may not be fatal, depending on the context, which the client is expected to provide.

Return Value
An array of any warnings generated.