Symbian
 Developer Library

DEVELOPER LIBRARY

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



Location: x509certext.h
Link against: x509.lib

Class CX509KeyUsageExt

CX509KeyUsageExt

Support

Supported from 6.0

Description

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

Derivation

CBaseBase class for all classes to be instantiated on the heap
CX509ExtensionBaseThis class is internal and not intended for use
CX509KeyUsageExtA X.509 certificate extension that defines the uses to which a key may be put

Defined in CX509KeyUsageExt:
IsSet(), NewL(), NewL(), NewLC(), NewLC(), ~CX509KeyUsageExt()

Inherited from CBase:
operator new()

Inherited from CX509ExtensionBase:
ConstructL(), DoConstructL()


Construction and destruction


NewL()

static CX509KeyUsageExt* NewL(const TDesC8& aBinaryData);

Description

Creates a new key usage certificate extension object from the specified buffer containing the binary coded representation.

Parameters

const TDesC8& aBinaryData

The encoded binary representation.

Return value

CX509KeyUsageExt*

The new key usage certificate extension object.


NewL()

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

Description

Creates a new key usage certificate extension object from the specified buffer containing the binary coded representation, starting at the specified offset.

Parameters

const TDesC8& aBinaryData

The encoded binary representation.

const TInt& aPos

The offset position from which to start decoding.

Return value

CX509KeyUsageExt*

The new key usage certificate extension object.


NewLC()

static CX509KeyUsageExt* NewLC(const TDesC8& aBinaryData);

Description

Creates a new key usage certificate extension 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

CX509KeyUsageExt*

The new key usage certificate extension object.


NewLC()

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

Description

Creates a new key usage certificate extension 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.

const TInt& aPos

The offset position from which to start decoding.

Return value

CX509KeyUsageExt*

The new key usage certificate extension object.


~CX509KeyUsageExt()

~CX509KeyUsageExt();

Description

Destructor.

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

[Top]


Member function


IsSet()

TBool IsSet(TKeyUsage aUsage) const;

Description

Tests whether a particular usage is set in the extension.

Parameters

TKeyUsage aUsage

The usage.

Return value

TBool

True, if the specific usage is set in the extension; false, otherwise.