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
Public Member Functions | |
---|---|
~CDecPkcs12SafeBag () | |
IMPORT_C const RPointerArray < CDecPkcs12Attribute > & | BagAttributes () |
IMPORT_C TBagId | BagID () |
IMPORT_C const TDesC8 & | BagValue () |
IMPORT_C CDecPkcs12SafeBag * | NewL (const TDesC8 &) |
Protected Member Functions | |
---|---|
CDecPkcs12SafeBag () | |
CDecPkcs12SafeBag (const CDecPkcs12SafeBag &) | |
void | ConstructL (const TDesC8 &) |
CDecPkcs12SafeBag & | operator= (const CDecPkcs12SafeBag &) |
Public Member Enumerations | |
---|---|
enum |
TBagId
{
EKeyBag = 1, EShroudedKeyBag , ECertBag , ECrlBag , ESecretBag , ESafeContentsBag } |
Protected Attributes | |
---|---|
RPointerArray < CDecPkcs12Attribute > | iBagAttributes |
TBagId | iBagId |
TPtrC8 | iBagValue |
CDecPkcs12SafeBag | ( | const CDecPkcs12SafeBag & | aDecPkcs12safeBag | ) | [protected] |
Copy Constructor.
const CDecPkcs12SafeBag & aDecPkcs12safeBag | A CDecPkcs12SafeBag object. |
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
IMPORT_C TBagId | BagID | ( | ) | const |
The BagId present in the SafeBag. BagID is an ObjectIdentifier which identifies the Type of bag present inside the SafeBag.
IMPORT_C const TDesC8 & | BagValue | ( | ) | const |
This method returns the BagValue present in the Safe Bag.
void | ConstructL | ( | const TDesC8 & | aRawData | ) | [protected] |
const TDesC8 & aRawData | contains a PKCS#12 safeBag Structure. |
IMPORT_C CDecPkcs12SafeBag * | NewL | ( | const TDesC8 & | aSafeBagData | ) | [static] |
Creates a new PKCS#12SafeBag object.
const TDesC8 & aSafeBagData | contains a PKCS#12 SafeBag Structure |
CDecPkcs12SafeBag & | operator= | ( | const CDecPkcs12SafeBag & | aDecPkcs12safeBag | ) | [protected] |
Assignment operator.
const CDecPkcs12SafeBag & aDecPkcs12safeBag | A CDecPkcs12SafeBag object. |
Identifies the type of Bag present in the PKCS#12 safeBag structure.
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 |
RPointerArray < CDecPkcs12Attribute > | iBagAttributes | [protected] |
TBagId | iBagId | [protected] |
Contains the BagId. That is ObjectIdentifier for SafeContents Bag
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.