CCMSAttribute Class Reference

class CCMSAttribute : public CCMSSequence

Attribute type module

ASN.1 Definition: Attribute ::= SEQUENCE { attrType OBJECT IDENTIFIER, attrValues SET OF AttributeValue }

AttributeValue ::= ANY

cms.lib
Since
2.8

Inherits from

Constructor & Destructor Documentation

CCMSAttribute()

IMPORT_C CCMSAttribute ( ) [protected]

C++ default constructor.

~CCMSAttribute()

~CCMSAttribute ( ) [virtual]

Destructor.

Member Functions Documentation

AttributeType()

IMPORT_C const TDesC & AttributeType ( ) const
Getter for attribute type
Since
2,8

AttributeValues()

IMPORT_C const CDesC8Array & AttributeValues ( ) const
Getter for attribute values
Since
2.8

ConstructL()

IMPORT_C void ConstructL ( ) [protected]

Protected construction to allow derivation

ConstructL(const TDesC &, const CDesC8Array &)

IMPORT_C void ConstructL ( const TDesC & aAttributeType,
const CDesC8Array & aAttributeValues
) [protected]

Protected construction to allow derivation

Parameters

const TDesC & aAttributeType
const CDesC8Array & aAttributeValues

ConstructL(const TDesC &, const TDesC8 &)

IMPORT_C void ConstructL ( const TDesC & aAttributeType,
const TDesC8 & aAttributeValue
) [protected]

Protected construction to allow derivation

Parameters

const TDesC & aAttributeType
const TDesC8 & aAttributeValue

DecodeL(const TDesC8 &)

void DecodeL ( const TDesC8 & aRawData )
From MCMSModule
Since
2.8

Parameters

const TDesC8 & aRawData raw-data to be parsed in this instance

EncoderLC()

CASN1EncBase * EncoderLC ( ) const
From MCMSModule
Since
2.8

NewL()

IMPORT_C CCMSAttribute * NewL ( ) [static]

Two-phased constructor. NOTE: Encrypt will leave with KErrBadDescriptor if valid Attribute Type has not setted.

NewL(const TDesC &, const CDesC8Array &)

IMPORT_C CCMSAttribute * NewL ( const TDesC & aAttributeType,
const CDesC8Array & aAttributeValues
) [static]

Two-phased constructor. Takes copy of the both type and values.

Parameters

const TDesC & aAttributeType The attribute type in desc e.g. content type = "1.2.840.113549.1.9.3".
const CDesC8Array & aAttributeValues

NewL(const TDesC &, const TDesC8 &)

IMPORT_C CCMSAttribute * NewL ( const TDesC & aAttributeType,
const TDesC8 & aAttributeValue
) [static]

Two-phased constructor. Same as above although takes only one value

Parameters

const TDesC & aAttributeType The attribute type in desc e.g. content type = "1.2.840.113549.1.9.3".
const TDesC8 & aAttributeValue

NewLC()

IMPORT_C CCMSAttribute * NewLC ( ) [static]

Two-phased constructor. NOTE: Encrypt will leave with KErrBadDescriptor if valid Attribute Type has not setted.

NewLC(const TDesC &, const CDesC8Array &)

IMPORT_C CCMSAttribute * NewLC ( const TDesC & aAttributeType,
const CDesC8Array & aAttributeValues
) [static]

Two-phased constructor. Takes copy of the both type and values. Leaves newly created instance in CleanupStack

Parameters

const TDesC & aAttributeType The attribute type in desc e.g. content type = "1.2.840.113549.1.9.3".
const CDesC8Array & aAttributeValues

NewLC(const TDesC &, const TDesC8 &)

IMPORT_C CCMSAttribute * NewLC ( const TDesC & aAttributeType,
const TDesC8 & aAttributeValue
) [static]

Two-phased constructor. Same as above although takes only one value Leaves newly created instance in CleanupStack

Parameters

const TDesC & aAttributeType The attribute type in desc e.g. content type = "1.2.840.113549.1.9.3".
const TDesC8 & aAttributeValue

SetAttributeTypeL(const TDesC &)

IMPORT_C void SetAttributeTypeL ( const TDesC & aAttributeType )
Setter for attribute type, takes copy
Since
2.8

Parameters

const TDesC & aAttributeType Attribute type to be set as TDesC.

SetAttributeValuesL(const CDesC8Array &)

IMPORT_C void SetAttributeValuesL ( const CDesC8Array & aAttributeValues )
Setter for attribute values
Since
2,8

Parameters

const CDesC8Array & aAttributeValues

Member Data Documentation

HBufC * iAttributeType

HBufC * iAttributeType [private]

CDesC8ArrayFlat * iAttributeValues

CDesC8ArrayFlat * iAttributeValues [private]

MCMSAttributeExtension * iReserved

MCMSAttributeExtension * iReserved [private]