»
Developer Library »
API Reference »
C++ API reference »
Certificate Manager »
CX500DistinguishedName
Location:
x500dn.h
Link against: x500.lib
Class CX500DistinguishedName
CX500DistinguishedName
Support
Supported from 6.0
Description
A collection of 'attribute type and value' objects, as defined by the X.520 standard.
A Distinguished Name traces a path through an X.500 Directory Information Tree.
Derivation
CBase | Base class for all classes to be instantiated on the heap |
CX500DistinguishedName | A collection of 'attribute type and value' objects, as defined by the X.520 standard |
|
Defined in CX500DistinguishedName:
Count(), Element(), ExactMatchL(), ExternalizeL(), IsWithinSubtreeL(), MatchElementL(), NewL(), NewL(), NewL(), NewL(), NewL(), NewLC(), NewLC(), NewLC(), NewLC(), NewLC(), ~CX500DistinguishedName()
Inherited from CBase:
operator new()
Construction and destruction
static CX500DistinguishedName* NewL(const TDesC8& aBinaryData, TInt& aPos);
Description
Creates a new Distinguished name object from the specified buffer containing the encoded binary
representation, starting at the specified offset.
Parameters
const TDesC8& aBinaryData |
The encoded binary representation. |
const TInt& aPos |
The position from which to start decoding. |
|
Return value
static CX500DistinguishedName* NewL(const TDesC8& aBinaryData);
Description
Creates a new Distinguished name object from the specified buffer containing the encoded binary
representation.
Iinitialises the object from its encoded binary form into an internal representation.
Parameters
const TDesC8& aBinaryData |
The encoded binary representation. |
|
Return value
static CX500DistinguishedName* NewL(RReadStream& aStream);
Description
Creates a new Distinguished name object from the specified read stream.
Construction is from a stream.
Parameters
Return value
static CX500DistinguishedName* NewL(const CArrayPtr<CX520AttributeTypeAndValue>& aElements);
Description
Creates a new Distinguished name object from the specified array of 'attribute type and value' objects.
The elements of the specified array are copied into this object.
Parameters
const CArrayPtrCX520AttributeTypeAndValue& aElements |
The array of 'attribute type and value' objects to be copied. |
|
Return value
static CX500DistinguishedName* NewL(const CX500DistinguishedName& aName);
Description
Creates a new Distinguished name object from an existing object.
This is equivalent to a copy constructor.
Parameters
Return value
static CX500DistinguishedName* NewLC(const TDesC8& aBinaryData);
Description
Creates a new Distinguished name object from the specified buffer containing the encoded binary
representation, and puts a pointer to it onto the cleanup stack.
Iinitialises the object from its encoded binary form into an internal representation.
Parameters
const TDesC8& aBinaryData |
The encoded binary representation. |
|
Return value
static CX500DistinguishedName* NewLC(const TDesC8& aBinaryData, TInt& aPos);
Description
Creates a new Distinguished name object from the specified buffer containing the encoded binary
representation, starting at the specified offset, and puts a pointer to it onto the cleanup stack.
Parameters
const TDesC8& aBinaryData |
The encoded binary representation. |
const TInt& aPos |
The position from which to start decoding. |
|
Return value
static CX500DistinguishedName* NewLC(RReadStream& aStream);
Description
Creates a new Distinguished name object from the specified read stream, and puts a pointer to it onto the cleanup stack.
Parameters
Return value
static CX500DistinguishedName* NewLC(const CArrayPtr<CX520AttributeTypeAndValue>& aElements);
Description
Creates a new Distinguished name object from the specified array of 'attribute type and value' objects, and puts a pointer
to it onto the cleanup stack.
The elements of the specified array are copied into this object.
Parameters
const CArrayPtrCX520AttributeTypeAndValue& aElements |
The array of 'attribute type and value' objects to be copied. |
|
Return value
static CX500DistinguishedName* NewLC(const CX500DistinguishedName& aName);
Description
Creates a new Distinguished name object from an existing object, and puts a pointer to it onto the cleanup stack.
This is equivalent to a copy constructor.
Parameters
Return value
~CX500DistinguishedName()
~CX500DistinguishedName();
Description
Destructor.
Frees all resources owned by the object, prior to its destruction.
void ExternalizeL(RWriteStream& aStream) const;
Description
Externalizes the object to a stream.
Parameters
TInt Count() const;
Description
Gets the number of 'attribute type and value' objects contained by this Distinguished name object.
Return value
TInt |
The number of 'attribute type and value' objects. |
|
const CX520AttributeTypeAndValue& Element(TInt aIndex) const;
Description
Gets a reference to specific 'attribute type and value' object as identified by the specified index.
Parameters
TInt aIndex |
The index number identifying the specific 'attribute type and value' object. This number is relative to zero.
This value must be non-negative and less than the number of objects currently contained by this
Distinguished name object. |
|
Return value
TBool ExactMatchL(const CX500DistinguishedName& aName) const;
Description
Compares the specified Distinguished name object with this Distinguished name object.
Parameters
Return value
TBool |
True, if the Distinguished name objects contain exactly the same 'attribute type and value' objects;
false, otherwise. |
|
See also:
TBool IsWithinSubtreeL(const CX500DistinguishedName& aName) const;
Description
Tests whether all 'attribute type and value' objects contained in the specified Distinguished name object are
also contained within this Distinguished name object.
Parameters
Return value
TBool |
True, if all 'attribute type and value' objects contained in the specified Distinguished name object are
also contained within this Distinguished name object; false, otherwise. |
|
TBool MatchElementL(const CX520AttributeTypeAndValue& aElement) const;
Description
Tests whether this Distinguished name object contains the specified 'attribute type and value' object.
Parameters
Return value
TBool |
True, if the specified 'attribute type and value' object is contained in this Distinguished name object;
false otherwise. |
|