CPKCS7ContentInfo Class Reference

class CPKCS7ContentInfo : public CBase

The RFC2315 ContentInfo 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

CPKCS7ContentInfo(void)

CPKCS7ContentInfo(void)[private]

Constructor.

Parameters

void

CPKCS7ContentInfo(const CPKCS7ContentInfo &)

CPKCS7ContentInfo(const CPKCS7ContentInfo &aContentInfo)[private]

Copy Constructor.

Parameters

const CPKCS7ContentInfo & aContentInfo

~CPKCS7ContentInfo()

~CPKCS7ContentInfo()[virtual]

Destructor.

Member Functions Documentation

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aRawData)[private]
Decodes the PKCS#7 ContentInfo object.
leave
KErrNotSupported if the OID val is otherthan 1 - 6 i,e the last part of the OID.
leave
KErrArgument if the data is not PKCS7 contentInfo structure. @ see TASN1DecObjectIdentifier,

Parameters

const TDesC8 & aRawDatacontains a PKCS#7 ContentInfo Structure.

ContentData()

IMPORT_C const TPtrC8ContentData()const

Provides access to the Content Data present in PKCS#7 ContentInfo ContentData present in PKCS#7 ContentInfo is OPTIONAL The client has to check for data length 0 in case there is no ContentData.

ContentType()

IMPORT_C TContentInfoTypeContentType()const

Provides the information about the ContentType in the ContentInfo Sequence. It returns the last number in the ObjectIdentifier

NewL(const TDesC8 &)

IMPORT_C CPKCS7ContentInfo *NewL(const TDesC8 &aRawData)[static]
Creates a new PKCS#7 ContentInfo object.
leave
KErrNotSupported if the OID value is otherthan enum TContentInfoType.
leave
KErrArgument if the data is not PKCS7 contentInfo structure.
TContentInfoType

Parameters

const TDesC8 & aRawDatacontains a PKCS#7 ContentInfo Structure

operator=(const CPKCS7ContentInfo &)

CPKCS7ContentInfo &operator=(const CPKCS7ContentInfo &aContentInfo)[private]

Assignment operator.

Parameters

const CPKCS7ContentInfo & aContentInfo

Member Enumerations Documentation

Enum TContentInfoType

Identifies the type of Content Type present in the PKCS7 ContentInfo Structure.

Enumerators

EContentTypeData = 1

The numeric value of last element in the PKCS7 ContentType Data OID

EContentTypeSignedData

The numeric value of last element in the PKCS7 ContentType SignedData OID

EContentTypeEnvelopedData

The numeric value of last element in the PKCS7 ContentType EnvelopedData OID

EContentTypeSignedAndEnvelopedData

The numeric value of last element in the PKCS7 ContentType SignedAndEnvelopedData OID

EContentTypeDigestedData

The numeric value of last element in the PKCS7 ContentType DigestedData OID

EContentTypeEncryptedData

The numeric value of last element in the PKCS7 ContentType EncryptedData OID

Member Data Documentation

TPtrC8 iContentData

TPtrC8 iContentData[private]

The ContentData present in PKCS7 ContentInfo

TContentInfoType iContentType

TContentInfoType iContentType[private]

Indicates the type of content. Here it is the last Character in the OID which identifies the Content Type.