CX509DomainName Class Reference

#include <x509gn.h>

Link against: x509.lib

class CX509DomainName : public CBase

Inherits from

Detailed Description

An X.509 domain name.

Base class for email address and DNS names.

Since
v6.0

Member Attribute Documentation

iName

HBufC *iName[protected]

A heap descriptor representing the full domain name.

iRep

RArray< TPtrC >iRep[protected]

An array of pointer descriptors representing the subdomains of the DSN name.

Constructor & Destructor Documentation

CX509DomainName ( )

CX509DomainName()[protected]

Default constructor.

~CX509DomainName ( )

IMPORT_C~CX509DomainName()

Destructor.

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

Member Function Documentation

AddDomainL ( TInt & )

TBool AddDomainL(TInt &aPos)[protected]

Adds a domain by its subdomains to an array of pointer descriptors.

Parameters
aPosThe position within the domain name.
Return Value
ETrue if the domain has been added; EFalse, otherwise.

AddSubdomainL ( TInt & )

TBool AddSubdomainL(TInt &aPos)[protected]

Adds a subdomain to an array of pointer descriptors.

Parameters
aPosThe position within the domain name.
Return Value
ETrue if the subdomain has been added; EFalse, otherwise.

AddSubdomainSeparatorL ( TInt & )

TBool AddSubdomainSeparatorL(TInt &aPos)[protected]

Adds a subdomain separator after each subdomain entry in an array of pointer descriptors that represent the subdomains of the domain name.

Parameters
aPosThe position within the domain name.
Return Value
ETrue if the subdomain separator has been added; EFalse, otherwise.

IsAlpha ( const TChar & )

TBool IsAlpha(const TChar &aChar)const [protected]

Tests whether the character is a letter.

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

IsAlphaOrNum ( const TChar & )

TBool IsAlphaOrNum(const TChar &aChar)const [protected]

Tests whether a character is a letter or a numeral.

Parameters
aCharThe character to be tested.
Return Value
ETrue if the character is a letter or a numeral; EFalse, otherwise.

IsValidChar ( const TChar & )

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

Validates a character.

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

IsValidString ( const TDesC & )

TBool IsValidString(const TDesC &aStr)const [protected, virtual]

Validates a string.

Parameters
aStrThe string to be verified.
Return Value
ETrue if the string is valid; EFalse, otherwise.

IsWithinSubtree ( const CX509DomainName & )

IMPORT_C TBoolIsWithinSubtree(const CX509DomainName &aName)const

Tests whether every sub domain in the specified domain name is the same as the corresponding sub domain in this object, starting at the end.

For example, 'john.doe@symbian.com' is within the subtree 'symbian.com' but is not within the subtree 'john' or 'symbian'.

Parameters
aNameThe domain name.
Return Value
ETrue, if every sub domain in the specified domain name is the same as the corresponding sub domain in this object; EFalse, otherwise.

Name ( )

IMPORT_C TPtrCName()const

Gets the full domain name.

Return Value
A pointer descriptor representing the full domain name.