Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <x509CertExt_v2.h>
Link against: x509.lib
This item is not part of the S60 5th Edition SDK

Class CX509ExtendedKeyUsageExt

class CX509ExtendedKeyUsageExt : public CX509ExtensionBase;

Description

An X.509 certificate extension that defines the extra uses to which a key may be put.

This is referred to as the extended key usage extension.

Derivation

Members

Defined in CX509ExtendedKeyUsageExt:

Inherited from CBase:

Inherited from CX509ExtensionBase:


Construction and destruction


NewL(const TDesC8 &)

IMPORT_C static CX509ExtendedKeyUsageExt* NewL(const TDesC8 &aBinaryData);

Description

Creates a new CX509ExtendedKeyUsageExt object from the specified buffer containing the binary coded representation.

Parameters

const TDesC8 &aBinaryData

The encoded binary data.

Return value

CX509ExtendedKeyUsageExt *

The new CX509ExtendedKeyUsageExt object.


NewLC(const TDesC8 &)

IMPORT_C static CX509ExtendedKeyUsageExt* NewLC(const TDesC8 &aBinaryData);

Description

Creates a new CX509ExtendedKeyUsageExt object from the specified buffer containing the binary coded representation, and puts a pointer to it onto the cleanup stack.

Parameters

const TDesC8 &aBinaryData

The encoded binary representation.

Return value

CX509ExtendedKeyUsageExt *

The new CX509ExtendedKeyUsageExt object.


NewL(const TDesC8 &,TInt &)

IMPORT_C static CX509ExtendedKeyUsageExt* NewL(const TDesC8 &aBinaryData, TInt &aPos);

Description

Creates a new CX509ExtendedKeyUsageExt object from the specified buffer containing the binary coded representation, starting at the specified offset.

Parameters

const TDesC8 &aBinaryData

The encoded binary representation.

TInt &aPos

The offset position from which to start decoding.

Return value

CX509ExtendedKeyUsageExt *

The new CX509ExtendedKeyUsageExt object.


NewLC(const TDesC8 &,TInt &)

IMPORT_C static CX509ExtendedKeyUsageExt* NewLC(const TDesC8 &aBinaryData, TInt &aPos);

Description

Creates a new CX509ExtendedKeyUsageExt object from the specified buffer containing the binary coded representation, starting at the specified offset, and puts a pointer to it onto the cleanup stack.

Parameters

const TDesC8 &aBinaryData

The encoded binary representation.

TInt &aPos

The offset position from which to start decoding.

Return value

CX509ExtendedKeyUsageExt *

The new CX509ExtendedKeyUsageExt object.


~CX509ExtendedKeyUsageExt()

IMPORT_C ~CX509ExtendedKeyUsageExt();

Description

Destructor.

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

[Top]


Member functions


KeyUsages()const

IMPORT_C const CArrayPtrFlat< HBufC >& KeyUsages() const;

Description

Gets the sequence of Object Ids (OID) that identify the key usages.

The sequence is held in a set of heap descriptors.

Return value

const CArrayPtrFlat< HBufC16 > &

A reference to the array of pointers to the heap descriptors that contain the OIDs.


DoConstructL(const TDesC8 &,TInt &)

private: virtual void DoConstructL(const TDesC8 &aBinaryData, TInt &aPos);

Description

Implementation for second-phase construction.

This is called by CX509ExtensionBase::ConstructL(const TDesC8 &,TInt &).

Parameters

const TDesC8 &aBinaryData

The encoded binary representation. This is the same as passed to CX509ExtensionBase::ConstructL(const TDesC8 &,TInt &).

TInt &aPos

The position from which to start decoding. Note that the value passed points, in effect, to the content, by passing the header data.