Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: pkixcertchain.h
Link against: x500.lib

Class CPKIXValidationResult

CPKIXValidationResult

Support

Supported from 6.0

Description

Encapsulates the result of the validation operation.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CPKIXValidationResultEncapsulates the result of the validation operation

Defined in CPKIXValidationResult:
AppendPolicyL(), AppendWarningL(), Error(), NewL(), NewLC(), Policies(), SetError(), SetErrorAndLeaveL(), Warnings(), ~CPKIXValidationResult()

Inherited from CBase:
operator new()


Construction and destruction


NewL()

static CPKIXValidationResult* NewL();

Description

Creates a CPKIX Validation result object.

Return value

CPKIXValidationResult*

The CPKIX Validation result object.


NewLC()

static CPKIXValidationResult* NewLC();

Description

Creates a CPKIX Validation result object, and puts a pointer to it onto the cleanup stack.

Return value

CPKIXValidationResult*

The CPKIX Validation result object.


~CPKIXValidationResult()

~CPKIXValidationResult();

Description

Destructor.

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

[Top]


Member functions


Error()

const TValidationStatus Error() const;

Description

Gets the error status for the chain. Any errors are considered fatal: validation has failed.

Return value

TValidationStatus

The status of the validation.


Warnings()

const CArrayFixFlat<TValidationStatus>& Warnings() const;

Description

Gets an array of any warnings generated: these may or may not be fatal, depending on the context, which the client is expected to provide.

Return value

CArrayFixFlat<TValidationStatus>&

The array of warnings.


Policies()

const CArrayPtrFlat<CX509CertPolicyInfo>& Policies() const;

Description

Gets an array of all the certificate policies which have been implicitly accepted in the course of validation.

Return value

CArrayPtrFlat<CX509CertPolicyInfo>&

The array of validated certificate policies.


SetErrorAndLeaveL()

void SetErrorAndLeaveL(const TValidationError aError, const TInt aCert);

Description

Sets the result of validating the certificate chain, and then leaves.

The function leaves unconditionally.

Parameters

const TValidationError aError

The result of validating the certificate chain.

const TInt aCert

The position of the certificate in the chain of certificates.

Leave codes

KErrgeneral

The function leaves with this leave code.


SetError()

void SetError(const TValidationError aError, const TInt aCert);

Description

Sets the result of validating the certificate chain.

Parameters

const TValidationError aError

The result of validating the certificate chain.

const TInt aCert

The position of the certificate in the chain of certificates.


AppendWarningL()

void AppendWarningL(TValidationStatus aWarning);

Description

Adds the specified certificate validation status object to any existing set of certificate validation status objects.

Parameters

TValidationStatus aWarning

The certificate validation status object to be added.


AppendPolicyL()

void AppendPolicyL(CX509CertPolicyInfo& aPolicy);

Description

Adds the specified certificate policy object to any existing set of certificate policy objects.

Parameters

CX509CertPolicyInfo& aPolicy

A reference to the certificate policy object to be added.