Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: x509gn.h
Link against: x509.lib

Class CX509DomainName

class CX509DomainName : public CBase;

Description

An X.509 domain name.

Base class for email address and DNS names.

Derivation

Members

Defined in CX509DomainName:
IsValidChar(), IsValidString(), IsWithinSubtree(), Name(), iName, iRep, ~CX509DomainName()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


~CX509DomainName()

IMPORT_C ~CX509DomainName();

Description

Destructor.

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

[Top]


Member functions


IsWithinSubtree()

IMPORT_C TBool IsWithinSubtree(const CX509DomainName &aName) const;

Description

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[email protected]' is within the subtree 'symbian.com' but is not within the subtree 'john' or 'symbian'.

Parameters

const CX509DomainName &aName

The domain name.

Return value

TBool

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 TPtrC Name() const;

Description

Gets the full domain name.

Return value

TPtrC

A pointer descriptor representing the full domain name.


IsValidString()

protected: virtual TBool IsValidString(const TDesC &aStr) const;

Description

Validates a string.

Parameters

const TDesC &aStr

The string to be verified.

Return value

TBool

ETrue if the string is valid; EFalse, otherwise.


IsValidChar()

protected: virtual TBool IsValidChar(const TChar &aChar) const;

Description

Validates a character.

Parameters

const TChar &aChar

The character to be validated.

Return value

TBool

ETrue if the character is valid; EFalse, otherwise.

[Top]


Member data


iRep

protected: RArray< TPtrC > iRep;

Description

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


iName

protected: HBufC * iName;

Description

A heap descriptor representing the full domain name.