#include <x520ava.h>
Link against:
x500.lib
Class CX520AttributeTypeAndValue
class CX520AttributeTypeAndValue : public CBase;
Description
Contains an attribute type and a value, as defined by the X.520 standard.
A Distinguished Name object, as defined by the X.500 standard, consists of a sequence of these objects.
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CX520AttributeTypeAndValue
- Contains an attribute type and a value, as defined by the X.520 standard.
Members
Defined in CX520AttributeTypeAndValue
:
Inherited from CBase
:
Construction and destruction
IMPORT_C static CX520AttributeTypeAndValue* NewL(const TDesC8 &aBinaryData);
Description
Creates a new CX520AttributeTypeAndValue object from the specified buffer containing the encoded binary representation.
Initialises the object from its encoded binary form into an internal representation.
Parameters
const TDesC8 &aBinaryData |
The encoded binary representation.
|
|
Return value
IMPORT_C static CX520AttributeTypeAndValue* NewLC(const TDesC8 &aBinaryData);
Description
Creates a new CX520AttributeTypeAndValue object from the specified buffer containing the encoded binary representation, and
puts a pointer to the new object onto the cleanup stack.
Initialises the object from its encoded binary form into an internal representation.
Parameters
const TDesC8 &aBinaryData |
The encoded binary representation.
|
|
Return value
NewL(const TDesC8 &,TInt &)
IMPORT_C static CX520AttributeTypeAndValue* NewL(const TDesC8 &aBinaryData, TInt &aPos);
Description
Creates a new CX520AttributeTypeAndValue object from the specified buffer containing the encoded binary representation, starting
at the specified offset.
Initialises the object from its encoded binary form into an internal representation.
Parameters
const TDesC8 &aBinaryData |
The encoded binary representation.
|
TInt &aPos |
The offset position from which to start decoding.
|
|
Return value
NewLC(const TDesC8 &,TInt &)
IMPORT_C static CX520AttributeTypeAndValue* NewLC(const TDesC8 &aBinaryData, TInt &aPos);
Description
Creates a new CX520AttributeTypeAndValue object from the specified buffer containing the encoded binary representation, starting
at the specified offset, and puts a pointer to the new object onto the cleanup stack.
Initialises the object from its encoded binary form into an internal representation.
Parameters
const TDesC8 &aBinaryData |
The encoded binary representation.
|
TInt &aPos |
The offset position from which to start decoding.
|
|
Return value
NewL(const CX520AttributeTypeAndValue &)
IMPORT_C static CX520AttributeTypeAndValue* NewL(const CX520AttributeTypeAndValue &aPair);
Description
Creates a new CX520AttributeTypeAndValue object from an existing object.
This is equivalent to a copy constructor.
Parameters
Return value
NewLC(const CX520AttributeTypeAndValue &)
IMPORT_C static CX520AttributeTypeAndValue* NewLC(const CX520AttributeTypeAndValue &aPair);
Description
Creates a new CX520AttributeTypeAndValue object from an existing object, and puts a pointer to the new object onto the cleanup
stack.
This is equivalent to a copy constructor.
Parameters
Return value
IMPORT_C static CX520AttributeTypeAndValue* NewL(RReadStream &aStream);
Description
Creates a new CX520AttributeTypeAndValue object from the specified read stream.
Parameters
RReadStream &aStream |
Stream from which the object is to be internalised.
|
|
Return value
IMPORT_C static CX520AttributeTypeAndValue* NewLC(RReadStream &aStream);
Description
Creates a new CX520AttributeTypeAndValue object from the specified read stream, and puts a pointer to the new object onto
the cleanup stack.
Parameters
RReadStream &aStream |
Stream from which the object is to be internalised.
|
|
Return value
NewL(TAttributeType,const TDesC8 &)
IMPORT_C static CX520AttributeTypeAndValue* NewL(TAttributeType aType, const TDesC8 &aValue);
Description
Creates a new CX520AttributeTypeAndValue object from an attribute type and value.
Parameters
Return value
NewLC(TAttributeType,const TDesC8 &)
IMPORT_C static CX520AttributeTypeAndValue* NewLC(TAttributeType aType, const TDesC8 &aValue);
Description
Creates a new CX520AttributeTypeAndValue object from an attribute type and value.
Parameters
Return value
~CX520AttributeTypeAndValue()
IMPORT_C ~CX520AttributeTypeAndValue();
Description
Destructor.
Frees all resources owned by the object, prior to its destruction.
IMPORT_C const TPtrC Type() const;
Description
Gets the encoded attribute type of the object.
Return value
const TPtrC16
|
A pointer descriptor representing the encoded attribute type.
|
|
IMPORT_C const TPtrC8 EncodedValue() const;
Description
Gets the encoded attribute value of the object.
Return value
const TPtrC8
|
The pointer descriptor representing the encoded attribute value.
|
|
IMPORT_C virtual HBufC* ValueL() const;
Description
Gets the decoded value.
Return value
HBufC16 *
|
A heap descriptor containing the decoded value.
|
|
IMPORT_C CASN1EncSequence* EncodeASN1LC() const;
Description
Encodes the contents into an ASN.1 sequence object.
This is useful to insert attribute type/value pairs into other ASN.1 encoding trees.
Return value
CASN1EncSequence *
|
New ASN.1 sequence object containing attribute type/value pair in for of an OID and an octet string; leaves the returned object
on the cleanup stack.
|
|
IMPORT_C CASN1EncSequence* EncodeASN1L() const;
Description
Encodes the contents into an ASN.1 sequence object.
Useful to insert attribute type/value pairs into other ASN.1 encoding trees.
Return value
CASN1EncSequence *
|
New ASN.1 sequence object containing attribute type/value pair in for of an OID and an octet string.
|
|
ExactMatchL(const CX520AttributeTypeAndValue &)const
IMPORT_C virtual TBool ExactMatchL(const CX520AttributeTypeAndValue &aElement) const;
Description
Compares the attribute type and decoded value of the specified object.
Parameters
Return value
TBool
|
ETrue, if the attribute types and the decoded values match; EFalse, otherwise.
|
|
ExternalizeL(RWriteStream &)const
virtual void ExternalizeL(RWriteStream &aStream) const;
Description
Externalises an object of this class to a write stream.
The presence of this function means that the standard templated operator<<(RWriteStream &,const T &)
can be used to externalise objects of this class.
Parameters
RWriteStream &aStream |
Stream to which the object should be externalised.
|
|
InternalizeL(RReadStream &)
private: virtual void InternalizeL(RReadStream &aStream);
Description
Parameters