PKCS12::CDecPkcs12KeyBag Class Reference

class PKCS12::CDecPkcs12KeyBag : public PKCS12::CDecPkcs12SafeBag

This class decodes the KeyBag present in the SafeBag. It has a method to get the PrivatKeyInfo

Inherits from

Constructor & Destructor Documentation

CDecPkcs12KeyBag()

CDecPkcs12KeyBag()[private]

Constructor.

CDecPkcs12KeyBag(const CDecPkcs12KeyBag &)

CDecPkcs12KeyBag(const CDecPkcs12KeyBag &aDecPkcs12keyBag)[private]

Copy Constructor.

Parameters

const CDecPkcs12KeyBag & aDecPkcs12keyBagA CDecPkcs12KeyBag object.

~CDecPkcs12KeyBag()

~CDecPkcs12KeyBag()[virtual]

Destructor.

Member Functions Documentation

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aSafeBagData)[private]
Decodes the entire KeyBag structure.
leave
KErrAgrument if the data is not a sequence or class tag name is not Universal and if iPrivateKeyInfo is NULL.
TASN1DecPKCS8

Parameters

const TDesC8 & aSafeBagDataContains a PKCS#12 SafeBag Structure.

NewL(const TDesC8 &)

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

Creates a new PKCS#12KeyBag object.

leave
KErrAgrument if the data is not a sequence or class tag name is not Universal and if iPrivateKeyInfo is NULL.

Parameters

const TDesC8 & aSafeBagDataContains a PKCS#12 SafeBag Structure.

PrivateKeyInfoL()

IMPORT_C CDecPKCS8Data *PrivateKeyInfoL()const

The PrivateKey information present in the KeyBag. The returned ASN1 sequence respects the following grammar:

PrivateKeyInfo ::= SEQUENCE { version Version, privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, privateKey PrivateKey, attributes [0] IMPLICIT Attributes OPTIONAL }

Version ::= INTEGER PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier PrivateKey ::= OCTET STRING Attributes ::= SET OF Attribute

CDecPKCS8Data

operator=(const CDecPkcs12KeyBag &)

CDecPkcs12KeyBag &operator=(const CDecPkcs12KeyBag &aDecPkcs12keyBag)[private]

Assignment operator.

Parameters

const CDecPkcs12KeyBag & aDecPkcs12keyBagA CDecPkcs12KeyBag object.