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

Constructor & Destructor Documentation

CEncapsulatedContentInfo()

CEncapsulatedContentInfo ( ) [private]

CEncapsulatedContentInfo(TCmsContentInfoType, TBool, const TDesC8 &)

CEncapsulatedContentInfo ( TCmsContentInfoType aContentInfoType,
TBool aIsEContentDataPresent,
const TDesC8 & aContentData
) [private]

Parameters

TCmsContentInfoType aContentInfoType
TBool aIsEContentDataPresent
const TDesC8 & aContentData

Member Functions Documentation

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aRawData ) [private]

Parameters

const TDesC8 & aRawData

ContentData()

IMPORT_C const TPtrC8 ContentData ( ) 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 TCmsContentInfoType ContentType ( ) 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 TBool IsContentDataPresent ( ) 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 & aRawData the encoded encapsulated data.

NewL(TCmsContentInfoType, TBool, const TDesC8 &)

CEncapsulatedContentInfo * NewL ( TCmsContentInfoType aContentInfoType,
TBool aIsEContentDataPresent,
const TDesC8 & aContentData
) [static]

Creates an EncapsulatedContentInfo as defined in RFC2630.

Parameters

TCmsContentInfoType aContentInfoType The type of the encapsulated content.
TBool aIsEContentDataPresent Indicates whether the encapsulated data is present.
const TDesC8 & aContentData The 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 & aRawData The encoded encapsulated data.

NewLC(TCmsContentInfoType, TBool, const TDesC8 &)

CEncapsulatedContentInfo * NewLC ( TCmsContentInfoType aContentInfoType,
TBool aIsEContentDataPresent,
const TDesC8 & aContentData
) [static]

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

Parameters

TCmsContentInfoType aContentInfoType The type of the encapsulated content.
TBool aIsEContentDataPresent Indicates whether the encapsulated data is present.
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

TBool iIsContentDataPresent

TBool iIsContentDataPresent [private]

Represents whether the Content is present or not.