CCmsContentInfo Class Reference

class CCmsContentInfo : public CBase

The RFC2630 ContentInfo entity. This class provides details about the content type in the ContentInfo, provides access to the content data when the content type is Data and provides access to the entire ContentInfo sequence. At present, only data content type and signed data type are supported.

Inherits from

Constructor & Destructor Documentation

CCmsContentInfo()

CCmsContentInfo ( ) [private]

default constructor

CCmsContentInfo(TCmsContentInfoType, const TDesC8 &)

CCmsContentInfo ( TCmsContentInfoType aContentInfoType,
const TDesC8 & aContentData
) [private]

constructor to build the CMS content info from the given parameters

Parameters

TCmsContentInfoType aContentInfoType the type of data contained in the CMS content info
const TDesC8 & aContentData the descriptor which contains the encoded CMS oject

~CCmsContentInfo()

IMPORT_C ~CCmsContentInfo ( )

Destructor

Member Functions Documentation

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aRawData ) [private]

constructor to build the CMS content info from the raw data.

Parameters

const TDesC8 & aRawData

ContentData()

IMPORT_C const TPtrC8 ContentData ( ) const

Provides access to the content data.

ContentType()

IMPORT_C TCmsContentInfoType ContentType ( ) const
Provides the information about the ContentType in the ContentInfo sequence. It returns the last number in the Object Identifier.
  • 1 for Data

  • 2 for SignedData

  • 3 for EnvelopedData

  • 5 for DigestedData

  • 6 for EncryptedData

EncodeASN1DERLC()

IMPORT_C CASN1EncSequence * EncodeASN1DERLC ( ) const

Creates the DER sequence of the ContentInfo and leaves the DER sequence on the cleanup stack.

NewL(const TDesC8 &)

IMPORT_C CCmsContentInfo * NewL ( const TDesC8 & aRawData ) [static]

Creates a ContentInfo as defined in RFC2630.

Parameters

const TDesC8 & aRawData The encoded encapsulated data.

NewL(TCmsContentInfoType, const TDesC8 &)

IMPORT_C CCmsContentInfo * NewL ( TCmsContentInfoType aContentInfoType,
const TDesC8 & aContentData
) [static]

Creates a ContentInfo as defined in RFC2630.

Parameters

TCmsContentInfoType aContentInfoType The type of the encapsulated content.
const TDesC8 & aContentData The encapsulated data.

NewLC(const TDesC8 &)

IMPORT_C CCmsContentInfo * NewLC ( const TDesC8 & aRawData ) [static]

Creates a ContentInfo as defined in RFC2630, and leaves the instance on the cleanup stack.

Parameters

const TDesC8 & aRawData The encoded encapsulated data.

NewLC(TCmsContentInfoType, const TDesC8 &)

IMPORT_C CCmsContentInfo * NewLC ( TCmsContentInfoType aContentInfoType,
const TDesC8 & aContentData
) [static]

Creates a ContentInfo as defined in RFC2630 and leaves the object on the cleanup stack.

Parameters

TCmsContentInfoType aContentInfoType The type of the encapsulated content.
const TDesC8 & aContentData The encapsulated data.

Member Data Documentation

TPtrC8 iContentData

TPtrC8 iContentData [private]

The Content Data

TCmsContentInfoType iContentType

TCmsContentInfoType iContentType [private]

The Type of the ContentInfo