PKCS12::CDecPkcs12SafeBag Class Reference

class PKCS12::CDecPkcs12SafeBag : public CBase

This class is the base class for all the bags and decodes the SafeBag. SafeBag has BagId, BagValue, and BagAttributes.

BagId's are in the form of an Object Identifiers OID ---- 1.2.840.113549.1.12.10.1.1 keybag OID ---- 1.2.840.113549.1.12.10.1.2 shroudedKeyBag OID ---- 1.2.840.113549.1.12.10.1.3 certBag OID ---- 1.2.840.113549.1.12.10.1.4 crlBag OID ---- 1.2.840.113549.1.12.10.1.5 SecretBag OID ---- 1.2.840.113549.1.12.10.1.6 SafeContentsBag

Inherits from

  • PKCS12::CDecPkcs12SafeBag

Constructor & Destructor Documentation

CDecPkcs12SafeBag()

CDecPkcs12SafeBag()[protected]

Constructor.

CDecPkcs12SafeBag(const CDecPkcs12SafeBag &)

CDecPkcs12SafeBag(const CDecPkcs12SafeBag &aDecPkcs12safeBag)[protected]

Copy Constructor.

Parameters

const CDecPkcs12SafeBag & aDecPkcs12safeBagA CDecPkcs12SafeBag object.

~CDecPkcs12SafeBag()

IMPORT_C~CDecPkcs12SafeBag()

Destructor.

Member Functions Documentation

BagAttributes()

IMPORT_C const RPointerArray< CDecPkcs12Attribute > &BagAttributes()const

This method returns an array of BagAttributes. BagAttributes is an Optional field. It allows users to assign nicknames and identifiers to keys, etc., and permits visual tools to display meaningful strings of some sort to the user. CDecPkcs12Attribute

BagID()

IMPORT_C TBagIdBagID()const

The BagId present in the SafeBag. BagID is an ObjectIdentifier which identifies the Type of bag present inside the SafeBag.

BagValue()

IMPORT_C const TDesC8 &BagValue()const

This method returns the BagValue present in the Safe Bag.

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aRawData)[protected]
This decodes the entire safeBag structure.
leave
KErrArgument if the data is not Pkcs12 safeBag structure.
CDecPkcs12Attribute

Parameters

const TDesC8 & aRawDatacontains a PKCS#12 safeBag Structure.

NewL(const TDesC8 &)

IMPORT_C CDecPkcs12SafeBag *NewL(const TDesC8 &aSafeBagData)[static]

Creates a new PKCS#12SafeBag object.

leave
KErrArgument if the data is not Pkcs12 safeBag structure.

Parameters

const TDesC8 & aSafeBagDatacontains a PKCS#12 SafeBag Structure

operator=(const CDecPkcs12SafeBag &)

CDecPkcs12SafeBag &operator=(const CDecPkcs12SafeBag &aDecPkcs12safeBag)[protected]

Assignment operator.

Parameters

const CDecPkcs12SafeBag & aDecPkcs12safeBagA CDecPkcs12SafeBag object.

Member Enumerations Documentation

Enum TBagId

Identifies the type of Bag present in the PKCS#12 safeBag structure.

Enumerators

EKeyBag = 1

The numeric value of last element in the PKCS#12 KeyBag OID

EShroudedKeyBag

The numeric value of last element in the PKCS#12 ShroudedKeyBag OID

ECertBag

The numeric value of last element in the PKCS#12 CertBag OID

ECrlBag

The numeric value of last element in the PKCS#12 CRLBag OID

ESecretBag

The numeric value of last element in the PKCS#12 SecretBag OID

ESafeContentsBag

The numeric value of last element in the PKCS#12 SafeContentsBag OID

Member Data Documentation

RPointerArray< CDecPkcs12Attribute > iBagAttributes

RPointerArray< CDecPkcs12Attribute >iBagAttributes[protected]

TBagId iBagId

TBagId iBagId[protected]

Contains the BagId. That is ObjectIdentifier for SafeContents Bag

TPtrC8 iBagValue

TPtrC8 iBagValue[protected]

Contains the BagValue