PKCS12::CDecPkcs12CertBag Class Reference

class PKCS12::CDecPkcs12CertBag : public PKCS12::CDecPkcs12SafeBag

This class decodes the CertBag It has methods to get the CertId and the CertValue present in the CertBag The X509Certificate() method returns the x509 certificate in case the CertId is x509

Inherits from

Constructor & Destructor Documentation

CDecPkcs12CertBag()

CDecPkcs12CertBag ( ) [private]

Constructor.

CDecPkcs12CertBag(const CDecPkcs12CertBag &)

CDecPkcs12CertBag ( const CDecPkcs12CertBag & aDecPkcs12CertBag ) [private]

Copy Constructor.

Parameters

const CDecPkcs12CertBag & aDecPkcs12CertBag A CDecPkcs12CertBag object.

~CDecPkcs12CertBag()

~CDecPkcs12CertBag ( ) [virtual]

Destructor.

Member Functions Documentation

CertId()

IMPORT_C const TDesC & CertId ( ) const

This method returns the OID present in the certId field of CertBag sequence.

CertValue()

IMPORT_C const TDesC8 & CertValue ( ) const

This method returns the DER encoded certValue present in the CertBag sequence. X509Certificate

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aCertBagData ) [private]
This decodes the entire CertBag structure.
leave
KErrArgument if the data is not a sequence or class tag name is not Universal.
CDecPkcs12SafeBag , CX509Certificate .

Parameters

const TDesC8 & aCertBagData contains a PKCS#12 CertBag Structure.

NewL(const TDesC8 &)

IMPORT_C CDecPkcs12CertBag * NewL ( const TDesC8 & aCertBagData ) [static]

Creates a new PKCS#12CertBag object.

leave
KErrArgument if the data is not a sequence or class tag name is not Universal.
leave
KErrNotSupported if otherthan X509 certificate is present.

Parameters

const TDesC8 & aCertBagData contains a PKCS#12 CertBag Structure.

X509CertificateL()

IMPORT_C CX509Certificate * X509CertificateL ( ) const

This method returns the decoded x509 certificate. CertValue

operator=(const CDecPkcs12CertBag &)

CDecPkcs12CertBag & operator= ( const CDecPkcs12CertBag & aDecPkcs12CertBag ) [private]

Assignment operator.

Parameters

const CDecPkcs12CertBag & aDecPkcs12CertBag A CDecPkcs12CertBag object.

Member Data Documentation

HBufC * iCertId

HBufC * iCertId [private]

Contains Object identifier indicating the certificate type

TPtrC8 iCertValue

TPtrC8 iCertValue [private]

Contains the certificate which is encoded and is an OCTET String