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.
Constructor & Destructor Documentation
CPKCS7ContentInfo(void)
CPKCS7ContentInfo
|
(
|
void
|
|
)
|
[private]
|
CPKCS7ContentInfo(const CPKCS7ContentInfo &)
~CPKCS7ContentInfo()
~CPKCS7ContentInfo
|
(
|
)
|
[virtual]
|
Member Functions Documentation
ConstructL(const TDesC8 &)
void
|
ConstructL
|
(
|
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
& aRawData
|
contains a PKCS#7 ContentInfo Structure.
|
ContentData()
IMPORT_C const
TPtrC8
|
ContentData
|
(
|
)
|
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()
Provides the information about the ContentType in the ContentInfo Sequence. It returns the last number in the ObjectIdentifier
NewL(const TDesC8 &)
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
& aRawData
|
contains a PKCS#7 ContentInfo Structure
|
operator=(const CPKCS7ContentInfo &)
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
The ContentData present in PKCS7 ContentInfo
TContentInfoType
iContentType
Indicates the type of content. Here it is the last Character in the OID which identifies the Content Type.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.