CEncapsulatedContentInfo Class Reference

class CEncapsulatedContentInfo : public CBase

The RFC2630 EncapsulatedContentInfo entity. This class provides details about the Content Type in the Content Info, provides access to the Content Data when the Content Type is Data and provides access to the entire ContentInfo sequence.

Inherits from

  • CEncapsulatedContentInfo

Constructor & Destructor Documentation

CEncapsulatedContentInfo()

CEncapsulatedContentInfo()[private]

CEncapsulatedContentInfo(TCmsContentInfoType, TBool, const TDesC8 &)

CEncapsulatedContentInfo(TCmsContentInfoTypeaContentInfoType,
TBoolaIsEContentDataPresent,
const TDesC8 &aContentData
)[private]

Parameters

TCmsContentInfoType aContentInfoType
TBool aIsEContentDataPresent
const TDesC8 & aContentData

Member Functions Documentation

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aRawData)[private]

Parameters

const TDesC8 & aRawData

ContentData()

IMPORT_C const TPtrC8ContentData()const

Provides access to the Content Data present in CMS. ContentData present in EncapsulatedContentInfo is OPTIONAL. The client has to check for data length 0 or if the data content is present in case there is no ContentData.

ContentType()

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

  • 2 for SignedData

  • 3 for EnvelopedData

  • 5 for DigestedData

  • 6 for EncryptedData

EncodeASN1DERLC()

CASN1EncSequence *EncodeASN1DERLC()const

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

IsContentDataPresent()

IMPORT_C TBoolIsContentDataPresent()const

Returns whether the ContentInfo is present or not. ContentData present in EncapsulatedContentInfo is OPTIONAL.

NewL(const TDesC8 &)

CEncapsulatedContentInfo *NewL(const TDesC8 &aRawData)[static]

Creates an EncapsulatedContentInfo as defined in RFC2630.

Parameters

const TDesC8 & aRawDatathe encoded encapsulated data.

NewL(TCmsContentInfoType, TBool, const TDesC8 &)

CEncapsulatedContentInfo *NewL(TCmsContentInfoTypeaContentInfoType,
TBoolaIsEContentDataPresent,
const TDesC8 &aContentData
)[static]

Creates an EncapsulatedContentInfo as defined in RFC2630.

Parameters

TCmsContentInfoType aContentInfoTypeThe type of the encapsulated content.
TBool aIsEContentDataPresentIndicates whether the encapsulated data is present.
const TDesC8 & aContentDataThe encapsulated data.

NewLC(const TDesC8 &)

CEncapsulatedContentInfo *NewLC(const TDesC8 &aRawData)[static]

Creates an EncapsulatedContentInfo as defined in RFC2630, and leaves the instance on the cleanup stack.

Parameters

const TDesC8 & aRawDataThe encoded encapsulated data.

NewLC(TCmsContentInfoType, TBool, const TDesC8 &)

CEncapsulatedContentInfo *NewLC(TCmsContentInfoTypeaContentInfoType,
TBoolaIsEContentDataPresent,
const TDesC8 &aContentData
)[static]

Creates an EncapsulatedContentInfo as defined in RFC2630, and leaves the instance on the cleanup stack.

Parameters

TCmsContentInfoType aContentInfoTypeThe type of the encapsulated content.
TBool aIsEContentDataPresentIndicates whether the encapsulated data is present.
const TDesC8 & aContentDataThe encapsulated data.

Member Data Documentation

TPtrC8 iContentData

TPtrC8 iContentData[private]

The Content Data.

TCmsContentInfoType iContentType

TCmsContentInfoType iContentType[private]

The Type of the ContentInfo

TBool iIsContentDataPresent

TBool iIsContentDataPresent[private]

Represents whether the Content is present or not.