Symbian
 Developer Library

DEVELOPER LIBRARY

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



Location: x509certext.h
Link against: x509.lib

Class CX509BasicConstraintsExt

CX509BasicConstraintsExt

Support

Supported from 6.0

Description

A X.509 certificate extension that defines basic constraints.

It indicates whether the certificate belongs to a Certificate Authority or an end Entity.

Derivation

CBaseBase class for all classes to be instantiated on the heap
CX509BasicConstraintsExtA X.509 certificate extension that defines basic constraints
CX509ExtensionBaseThis class is internal and not intended for use

Defined in CX509BasicConstraintsExt:
IsCA(), MaxChainLength(), NewL(), NewL(), NewLC(), NewLC(), ~CX509BasicConstraintsExt()

Inherited from CBase:
operator new()

Inherited from CX509ExtensionBase:
ConstructL(), DoConstructL()


Construction and destruction


NewL()

static CX509BasicConstraintsExt* NewL(const TDesC8& aBinaryData);

Description

Creates a new basic constraints certificate extension object from the specified buffer containing the binary coded representation.

Parameters

const TDesC8& aBinaryData

The encoded binary representation.

Return value

CX509BasicConstraintsExt*

The new basic constraints certificate extension object.


NewL()

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

Description

Creates a new basic constraints 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

CX509BasicConstraintsExt*

The new basic constraints certificate extension object.


NewLC()

static CX509BasicConstraintsExt* NewLC(const TDesC8& aBinaryData);

Description

Creates a new basic constraints 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

CX509BasicConstraintsExt*

The new basic constraints certificate extension object.


NewLC()

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

Description

Creates a new basic constraints 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

CX509BasicConstraintsExt*

The new basic constraints certificate extension object.


~CX509BasicConstraintsExt()

~CX509BasicConstraintsExt();

Description

Destructor.

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

[Top]


Member functions


IsCA()

TBool IsCA() const;

Description

Tests whether the certificate belongs to a Certificate Authority.

Return value

TBool

True, if the certificate belongs to a Certificate Authority; false, otherwise.


MaxChainLength()

TInt MaxChainLength() const;

Description

Gets the maximum number of certificates that can follow this one in the chain.

Return value

TInt

The number of certificates.