Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: x509certchain.h
Link against: x509.lib

Class CX509CertChain

class CX509CertChain : public CBase;

Description

Abstract base class for X.509 certificate chain validation; derive from this to suit your profile.

Derivation

Members

Defined in CX509CertChain:
Cert(), Count(), DecodeCertsL(), IsEqualL(), iChain, ~CX509CertChain()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


~CX509CertChain()

IMPORT_C ~CX509CertChain();

Description

Destructor.

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

[Top]


Member functions


Count()

IMPORT_C TInt Count() const;

Description

Gets the number of certificates in the chain.

Return value

TInt

The number of certificates in the chain.


Cert()

IMPORT_C const CX509Certificate &Cert(TInt aIndex) const;

Description

Gets the certificate identified by the specified index. Note that Cert(Count()) corresponds to the root (if any) whilst Cert(0) corresponds to the outmost certificate in the chain.

Parameters

TInt aIndex

The ordinal number representing the position of the certificate within the chain.

Return value

const CX509Certificate &

The X.509 certificate at the specified index.


DecodeCertsL()

IMPORT_C CArrayPtrFlat< CX509Certificate > *DecodeCertsL(const TDesC8 &aBinaryData);

Description

Decodes the individual elements of the signed data to construct the certificates.

Parameters

const TDesC8 &aBinaryData

The encoded binary representation.

Return value

CArrayPtrFlat< CX509Certificate > *

The certificate objects.


IsEqualL()

IMPORT_C TBool IsEqualL(const CX509CertChain &aOther) const;

Description

Tests whether the specified X.509 certificate chain is equal to this X.509 certificate chain.

Parameters

const CX509CertChain &aOther

The X.509 certificate chain to be compared.

Return value

TBool

ETrue, if the certificate chains are equal;EFalse, otherwise.

[Top]


Member data


iChain

protected: CArrayPtrFlat< CX509Certificate > * iChain;

Description