CX509RFC822NameSubtree Class Reference

#include <x509gn.h>

Link against: x509.lib

class CX509RFC822NameSubtree : public CX509DomainName

Inherits from

Detailed Description

A full or partial RFC 822 email address.

The address may not contain the local host name as this is optional.

The object is initialised with 8-bit encoded binary data, which is parsed into a series of sub domains and an optional local host.

Member Function Documentation

AddLocalHostL ( TInt & )

TBool AddLocalHostL(TInt &aPos)[protected]

Adds a local host.

Parameters
aPosThe position from which to start decoding.
Return Value
ETrue, if the host has been found and added; EFalse, otherwise.

ConstructL ( const TDesC8 & )

voidConstructL(const TDesC8 &aBinaryData)[protected, virtual]

Second-phase constructor.

Parameters
aBinaryDataThe encoded binary representation.

IsValidChar ( const TChar & )

TBool IsValidChar(const TChar &aChar)const [protected, virtual]

Reimplemented from CX509DomainName::IsValidChar(const TChar &)const

Tests whether the character is valid.

Parameters
aCharThe character to be tested.
Return Value
ETrue, if the character is valid; EFalse, otherwise.

NewL ( const TDesC8 & )

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

Creates an RFC 822 email address object from the specified buffer containing the binary coded representation.

The data is parsed into a series of sub domains and an optional local host.

Parameters
aBinaryDataThe encoded binary representation.
Return Value
The new RFC 822 email address object.

NewLC ( const TDesC8 & )

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

Creates an RFC 822 email address object from the specified buffer containing the binary coded representation, and puts a pointer to it onto the cleanup stack. The data is parsed into a series of sub domains and an optional local host.

Parameters
aBinaryDataThe encoded binary representation.
Return Value
The new RFC 822 email address object.

Rep ( )

IMPORT_C const RArray< TPtrC > &Rep()const

Gets a reference to the array of pointer descriptors representing the subdomains of the RFC 822 email address.

Return Value
The array of pointer descriptors.