#include <x520ava.h>
class CX520AttributeTypeAndValue : public CBase |
Public Member Functions | |
---|---|
~CX520AttributeTypeAndValue() | |
IMPORT_C CASN1EncSequence * | EncodeASN1L() |
IMPORT_C CASN1EncSequence * | EncodeASN1LC() |
IMPORT_C const TPtrC8 | EncodedValue() |
virtual IMPORT_C TBool | ExactMatchL(const CX520AttributeTypeAndValue &) |
virtual void | ExternalizeL(RWriteStream &) |
IMPORT_C CX520AttributeTypeAndValue * | NewL(const TDesC8 &) |
IMPORT_C CX520AttributeTypeAndValue * | NewL(const TDesC8 &, TInt &) |
IMPORT_C CX520AttributeTypeAndValue * | NewL(const CX520AttributeTypeAndValue &) |
IMPORT_C CX520AttributeTypeAndValue * | NewL(RReadStream &) |
IMPORT_C CX520AttributeTypeAndValue * | NewL(TAttributeType, const TDesC8 &) |
IMPORT_C CX520AttributeTypeAndValue * | NewLC(const TDesC8 &) |
IMPORT_C CX520AttributeTypeAndValue * | NewLC(const TDesC8 &, TInt &) |
IMPORT_C CX520AttributeTypeAndValue * | NewLC(const CX520AttributeTypeAndValue &) |
IMPORT_C CX520AttributeTypeAndValue * | NewLC(RReadStream &) |
IMPORT_C CX520AttributeTypeAndValue * | NewLC(TAttributeType, const TDesC8 &) |
IMPORT_C const TPtrC | Type() |
virtual IMPORT_C HBufC * | ValueL() |
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.
IMPORT_C | ~CX520AttributeTypeAndValue | ( | ) |
Destructor.
Frees all resources owned by the object, prior to its destruction.
IMPORT_C CASN1EncSequence * | EncodeASN1L | ( | ) | const |
Encodes the contents into an ASN.1 sequence object.
Useful to insert attribute type/value pairs into other ASN.1 encoding trees.
Returns: New ASN.1 sequence object containing attribute type/value pair in for of an OID and an octet string.
IMPORT_C CASN1EncSequence * | EncodeASN1LC | ( | ) | const |
Encodes the contents into an ASN.1 sequence object.
This is useful to insert attribute type/value pairs into other ASN.1 encoding trees.
Returns: 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 const TPtrC8 | EncodedValue | ( | ) | const |
Gets the encoded attribute value of the object.
Returns: The pointer descriptor representing the encoded attribute value.
IMPORT_C TBool | ExactMatchL | ( | const CX520AttributeTypeAndValue & | aElement | ) | const [virtual] |
Compares the attribute type and decoded value of the specified object.
Parameter | Description |
---|---|
aElement | The CX520AttributeTypeAndValue object to be compared. |
Returns: ETrue, if the attribute types and the decoded values match; EFalse, otherwise.
void | ExternalizeL | ( | RWriteStream & | aStream | ) | const [virtual] |
Externalises an object of this class to a write stream.
The presence of this function means that the standard templated operator<<() can be used to externalise objects of this class.
Parameter | Description |
---|---|
aStream | Stream to which the object should be externalised. |
IMPORT_C CX520AttributeTypeAndValue * | NewL | ( | const TDesC8 & | aBinaryData | ) | [static] |
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.
Parameter | Description |
---|---|
aBinaryData | The encoded binary representation. |
Returns: The new CX520AttributeTypeAndValue object.
IMPORT_C CX520AttributeTypeAndValue * | NewL | ( | const TDesC8 & | aBinaryData, |
TInt & | aPos | |||
) | [static] |
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.
Parameter | Description |
---|---|
aBinaryData | The encoded binary representation. |
aPos | The offset position from which to start decoding. |
Returns: The new CX520AttributeTypeAndValue object.
IMPORT_C CX520AttributeTypeAndValue * | NewL | ( | const CX520AttributeTypeAndValue & | aPair | ) | [static] |
Creates a new CX520AttributeTypeAndValue object from an existing object.
This is equivalent to a copy constructor.
Parameter | Description |
---|---|
aPair | The CX520AttributeTypeAndValue object. |
Returns: The new CX520AttributeTypeAndValue object.
IMPORT_C CX520AttributeTypeAndValue * | NewL | ( | RReadStream & | aStream | ) | [static] |
Creates a new CX520AttributeTypeAndValue object from the specified read stream.
Parameter | Description |
---|---|
aStream | Stream from which the object is to be internalised. |
Returns: The new CX520AttributeTypeAndValue object.
IMPORT_C CX520AttributeTypeAndValue * | NewL | ( | TAttributeType | aType, |
const TDesC8 & | aValue | |||
) | [static] |
Creates a new CX520AttributeTypeAndValue object from an attribute type and value.
Allocates and initializes a new attribute-value pair object from type and value.
See also: CX520AttributeTypeAndValue::NewLC
Parameter | Description |
---|---|
aType | Type of the value (see TAttributeType enum). |
aValue | String value of the attribute. |
Returns: New CX520AttributeTypeAndValue objectPointer to a newly allocated and initialized attribute-value pair.
IMPORT_C CX520AttributeTypeAndValue * | NewLC | ( | const TDesC8 & | aBinaryData | ) | [static] |
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.
Parameter | Description |
---|---|
aBinaryData | The encoded binary representation. |
Returns: The new CX520AttributeTypeAndValue object.
IMPORT_C CX520AttributeTypeAndValue * | NewLC | ( | const TDesC8 & | aBinaryData, |
TInt & | aPos | |||
) | [static] |
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.
Parameter | Description |
---|---|
aBinaryData | The encoded binary representation. |
aPos | The offset position from which to start decoding. |
Returns: The new CX520AttributeTypeAndValue object.
IMPORT_C CX520AttributeTypeAndValue * | NewLC | ( | const CX520AttributeTypeAndValue & | aPair | ) | [static] |
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.
Parameter | Description |
---|---|
aPair | The CX520AttributeTypeAndValue object. |
Returns: The new CX520AttributeTypeAndValue object.
IMPORT_C CX520AttributeTypeAndValue * | NewLC | ( | RReadStream & | aStream | ) | [static] |
Creates a new CX520AttributeTypeAndValue object from the specified read stream, and puts a pointer to the new object onto the cleanup stack.
Parameter | Description |
---|---|
aStream | Stream from which the object is to be internalised. |
Returns: The new CX520AttributeTypeAndValue object.
IMPORT_C CX520AttributeTypeAndValue * | NewLC | ( | TAttributeType | aType, |
const TDesC8 & | aValue | |||
) | [static] |
Creates a new CX520AttributeTypeAndValue object from an attribute type and value.
Allocates and initializes a new attribute-value pair object from type and value. Pushes the newly allocated object onto the cleanup stack.
See also: CX520AttributeTypeAndValue::NewL
Parameter | Description |
---|---|
aType | Type of the value (see TAttributeType enum). |
aValue | String value of the attribute. |
Returns: New CX520AttributeTypeAndValue object on the cleanup stackPointer to a newly allocated and initialized attribute-value pair.
IMPORT_C const TPtrC | Type | ( | ) | const |
Gets the encoded attribute type of the object.
Returns: A pointer descriptor representing the encoded attribute type.
IMPORT_C HBufC * | ValueL | ( | ) | const [virtual] |
Gets the decoded value.
Returns: A heap descriptor containing the decoded value.