CX509AltNameExt Class Reference

#include <x509certext.h>

Link against: x509.lib

class CX509AltNameExt : public CX509ExtensionBase

Inherits from

Detailed Description

An X.509 certificate extension that defines an alternate name.

It appears as an Issuer Alt Name extension or a Subject Alt Name extension and is used to contain extra identifying information that will not fit into a Distinguished Name.

It consists of an array of X.509 General Names.

Since
v6.0

Constructor & Destructor Documentation

~CX509AltNameExt ( )

~CX509AltNameExt()[virtual]

Destructor.

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

Member Function Documentation

AltName ( )

IMPORT_C const CArrayPtrFlat< CX509GeneralName > &AltName()const

Gets a reference to the array of general names that forms the alternate name extension.

Return Value
The array of general names.

Match ( const CX509AltNameExt & )

IMPORT_C TBoolMatch(const CX509AltNameExt &aExt)const

Checks whether the corressponding elements of two equally sized arrays of X.509 general names match.

Parameters
aExtAn X.509 certificate extension object that defines an alternate name.
Return Value
TRUE if all the elements in the arrays match.

NewL ( const TDesC8 & )

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

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

Parameters
aBinaryDataThe encoded binary representation.
Return Value
The new CX509AltNameExt object.

NewL ( const TDesC8 &, TInt & )

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

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

Parameters
aBinaryDataThe encoded binary representation.
aPosThe offset position from which to start decoding.
Return Value
The new CX509AltNameExt object.

NewLC ( const TDesC8 & )

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

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

Parameters
aBinaryDataThe encoded binary representation.
Return Value
The new CX509AltNameExt object.

NewLC ( const TDesC8 &, TInt & )

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

Creates a new CX509AltNameExt 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
aBinaryDataThe encoded binary representation.
aPosThe offset position from which to start decoding.
Return Value
The new CX509AltNameExt object.