CWTLSValidationResult Class Reference

class CWTLSValidationResult : public CBase

Encapsulates the results of the validation process.

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

Inherits from

Constructor & Destructor Documentation

CWTLSValidationResult()

CWTLSValidationResult ( ) [private]

~CWTLSValidationResult()

IMPORT_C ~CWTLSValidationResult ( )

Destructor.

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

Member Functions Documentation

AppendWarningL(TWTLSValidationStatus)

void AppendWarningL ( TWTLSValidationStatus aWarning )

Adds a warning to the validation.

Parameters

TWTLSValidationStatus aWarning The validation status object to be added.

ConstructL()

void ConstructL ( ) [private]

Error()

IMPORT_C const TWTLSValidationStatus Error ( ) const

Gets the error status of the operation.

Any errors here are considered fatal: validation has failed.

NewL()

IMPORT_C CWTLSValidationResult * NewL ( ) [static]

Creates a new CWTLSValidationResult object.

NewLC()

IMPORT_C CWTLSValidationResult * NewLC ( ) [static]

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

Reset()

void Reset ( )

Resets the validation result object to its default values.

SetError(const TValidationError, const TInt)

void SetError ( const TValidationError aError,
const TInt aCert
)

Sets the error.

Parameters

const TValidationError aError The error type that occurred when validating the certificate chain.
const TInt aCert The 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.

Member Data Documentation

TWTLSValidationStatus iError

TWTLSValidationStatus iError [private]

CArrayFixFlat< TWTLSValidationStatus > * iWarnings

CArrayFixFlat < TWTLSValidationStatus > * iWarnings [private]