CX520AttributeTypeAndValue Class Reference

class CX520AttributeTypeAndValue : public CBase

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.

Since
v6.0

Inherits from

  • CX520AttributeTypeAndValue
Public Member Functions
~CX520AttributeTypeAndValue()
IMPORT_C CASN1EncSequence *EncodeASN1L()
IMPORT_C CASN1EncSequence *EncodeASN1LC()
IMPORT_C const TPtrC8EncodedValue()
IMPORT_C TBoolExactMatchL(const CX520AttributeTypeAndValue &)
voidExternalizeL(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 TPtrCType()
IMPORT_C HBufC *ValueL()
Private Member Functions
CX520AttributeTypeAndValue(const TAttributeType)
CX520AttributeTypeAndValue()
voidConstructL(const CX520AttributeTypeAndValue &)
voidConstructL(const TDesC8 &, TInt &)
voidConstructL(TAttributeType, const TDesC8 &)
voidInternalizeL(RReadStream &)
TBool IsCaseInSensitiveL(const TDesC8 &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Private Attributes
HBufC *iType
HBufC8 *iValue

Constructor & Destructor Documentation

CX520AttributeTypeAndValue(const TAttributeType)

CX520AttributeTypeAndValue(const TAttributeTypeaType)[private]

Parameters

const TAttributeType aType

CX520AttributeTypeAndValue()

CX520AttributeTypeAndValue()[private]

~CX520AttributeTypeAndValue()

IMPORT_C~CX520AttributeTypeAndValue()

Destructor.

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

Member Functions Documentation

ConstructL(const CX520AttributeTypeAndValue &)

voidConstructL(const CX520AttributeTypeAndValue &aPair)[private]

Parameters

const CX520AttributeTypeAndValue & aPair

ConstructL(const TDesC8 &, TInt &)

voidConstructL(const TDesC8 &aBinaryData,
TInt &aPos
)[private]

Parameters

const TDesC8 & aBinaryData
TInt & aPos

ConstructL(TAttributeType, const TDesC8 &)

voidConstructL(TAttributeTypeaType,
const TDesC8 &aValue
)[private]

Parameters

TAttributeType aType
const TDesC8 & aValue

EncodeASN1L()

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.

EncodeASN1LC()

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.

EncodedValue()

IMPORT_C const TPtrC8EncodedValue()const

Gets the encoded attribute value of the object.

ExactMatchL(const CX520AttributeTypeAndValue &)

IMPORT_C TBoolExactMatchL(const CX520AttributeTypeAndValue &aElement)const [virtual]

Compares the attribute type and decoded value of the specified object.

Parameters

const CX520AttributeTypeAndValue & aElementThe CX520AttributeTypeAndValue object to be compared.

ExternalizeL(RWriteStream &)

voidExternalizeL(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.

Parameters

RWriteStream & aStreamStream to which the object should be externalised.

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private, virtual]

Parameters

RReadStream & aStream

IsCaseInSensitiveL(const TDesC8 &)

TBool IsCaseInSensitiveL(const TDesC8 &aSource)const [private]

This method finds out if case-insensitive comparisons must be done or not. Email Address is the exceptional case of 'IA5String' value type for which comparisons must be done case-insensitivly.

Parameters

const TDesC8 & aSourcecontains the encoded value of the attribute type.

NewL(const TDesC8 &)

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.

Parameters

const TDesC8 & aBinaryDataThe encoded binary representation.

NewL(const TDesC8 &, TInt &)

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.

Parameters

const TDesC8 & aBinaryDataThe encoded binary representation.
TInt & aPosThe offset position from which to start decoding.

NewL(const CX520AttributeTypeAndValue &)

IMPORT_C CX520AttributeTypeAndValue *NewL(const CX520AttributeTypeAndValue &aPair)[static]

Creates a new CX520AttributeTypeAndValue object from an existing object.

This is equivalent to a copy constructor.

Parameters

const CX520AttributeTypeAndValue & aPairThe CX520AttributeTypeAndValue object.

NewL(RReadStream &)

IMPORT_C CX520AttributeTypeAndValue *NewL(RReadStream &aStream)[static]

Creates a new CX520AttributeTypeAndValue object from the specified read stream.

Parameters

RReadStream & aStreamStream from which the object is to be internalised.

NewL(TAttributeType, const TDesC8 &)

IMPORT_C CX520AttributeTypeAndValue *NewL(TAttributeTypeaType,
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. CX520AttributeTypeAndValue::NewLC

Parameters

TAttributeType aTypeType of the value (see TAttributeType enum).
const TDesC8 & aValueString value of the attribute.

NewLC(const TDesC8 &)

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.

Parameters

const TDesC8 & aBinaryDataThe encoded binary representation.

NewLC(const TDesC8 &, TInt &)

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.

Parameters

const TDesC8 & aBinaryDataThe encoded binary representation.
TInt & aPosThe offset position from which to start decoding.

NewLC(const CX520AttributeTypeAndValue &)

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.

Parameters

const CX520AttributeTypeAndValue & aPairThe CX520AttributeTypeAndValue object.

NewLC(RReadStream &)

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.

Parameters

RReadStream & aStreamStream from which the object is to be internalised.

NewLC(TAttributeType, const TDesC8 &)

IMPORT_C CX520AttributeTypeAndValue *NewLC(TAttributeTypeaType,
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. CX520AttributeTypeAndValue::NewL

Parameters

TAttributeType aTypeType of the value (see TAttributeType enum).
const TDesC8 & aValueString value of the attribute.

Type()

IMPORT_C const TPtrCType()const

Gets the encoded attribute type of the object.

ValueL()

IMPORT_C HBufC *ValueL()const [virtual]

Gets the decoded value.

Member Data Documentation

HBufC * iType

HBufC *iType[private]

HBufC8 * iValue

HBufC8 *iValue[private]