CX509GeneralName Class Reference

class CX509GeneralName : public CBase

Defines a general name.

The class contains a tag and a name whose form depends on the value of that tag.

When a General Name is included as part of a Name Constraints Extension, the values need not be complete names but may be simply subtrees.

For example, 'symbian.com' instead of [email protected]'. Both names are valid subtrees but only the second is a valid RFC822 name.

Inherits from

Constructor & Destructor Documentation

CX509GeneralName()

CX509GeneralName()[private]

CX509GeneralName(TGNType)

CX509GeneralName(TGNTypeaType)[private]

Parameters

TGNType aType

~CX509GeneralName()

IMPORT_C~CX509GeneralName()

Destructor.

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

Member Functions Documentation

ConstructL()

voidConstructL()[private]

ConstructL(const TDesC8 &, TInt &)

voidConstructL(const TDesC8 &aBinaryData,
TInt &aPos
)[private]

Parameters

const TDesC8 & aBinaryData
TInt & aPos

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aData)[private]

Parameters

const TDesC8 & aData

Data()

IMPORT_C TPtrC8Data()const

Gets the name.

A pointer descriptor representing the name.

ExactMatch(const CX509GeneralName &)

IMPORT_C TBoolExactMatch(const CX509GeneralName &aName)const

Dummy Function which always returns EFalse. EFalse.

Parameters

const CX509GeneralName & aNameThe general name object to be copied.

NewL(const TDesC8 &)

IMPORT_C CX509GeneralName *NewL(const TDesC8 &aBinaryData)[static]

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

The new general name object.

Parameters

const TDesC8 & aBinaryDataThe encoded binary representation.

NewL(const TDesC8 &, TInt &)

IMPORT_C CX509GeneralName *NewL(const TDesC8 &aBinaryData,
TInt &aPos
)[static]

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

The new general name object.

Parameters

const TDesC8 & aBinaryDataThe encoded binary representation.
TInt & aPosThe offset position from which to start decoding.

NewL(const CX509GeneralName &)

IMPORT_C CX509GeneralName *NewL(const CX509GeneralName &aName)[static]

Creates a new general name object from an existing object.

This is equivalent to a copy constructor.

The new general name object.

Parameters

const CX509GeneralName & aNameThe general name object to be copied.

NewLC(const TDesC8 &)

IMPORT_C CX509GeneralName *NewLC(const TDesC8 &aBinaryData)[static]

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

Initialises the object from its encoded binary form into an internal representation.

The new general name object.

Parameters

const TDesC8 & aBinaryDataThe encoded binary representation.

NewLC(const TDesC8 &, TInt &)

IMPORT_C CX509GeneralName *NewLC(const TDesC8 &aBinaryData,
TInt &aPos
)[static]

Creates a new general name 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.

Initialises the object from its encoded binary form into an internal representation.

The new general name object.

Parameters

const TDesC8 & aBinaryDataThe encoded binary representation.
TInt & aPosThe offset position from which to start decoding.

NewLC(const CX509GeneralName &)

IMPORT_C CX509GeneralName *NewLC(const CX509GeneralName &aName)[static]

Creates a new general name object from an existing object, and puts a pointer to it onto the cleanup stack.

This is equivalent to a copy constructor.

The new general name object.

Parameters

const CX509GeneralName & aNameThe general name object to be copied.

Tag()

IMPORT_C TGNTypeTag()const

Gets the type tag.

The type tag.

Member Data Documentation

HBufC8 * iData

HBufC8 *iData[private]

TGNType iTag

TGNType iTag[private]