PKCS12::CDecPkcs12Attribute Class Reference

class PKCS12::CDecPkcs12Attribute : public CBase

This class decodes the bagAttributes present in the SafeBag. It has methods to get the AttributeId and the AttributeValue.

Inherits from

  • PKCS12::CDecPkcs12Attribute

Constructor & Destructor Documentation

CDecPkcs12Attribute()

CDecPkcs12Attribute ( ) [private]

Construtor.

CDecPkcs12Attribute(const CDecPkcs12Attribute &)

CDecPkcs12Attribute ( const CDecPkcs12Attribute & aDecPkcs12Atrribute ) [private]

Copy Constructor.

Parameters

const CDecPkcs12Attribute & aDecPkcs12Atrribute A CDecPkcs12Attribute object.

~CDecPkcs12Attribute()

~CDecPkcs12Attribute ( ) [virtual]

Destructor.

Member Functions Documentation

AttributeId()

IMPORT_C const TDesC & AttributeId ( ) const
Returns the ObjectIdentifier indicating the attribute type:
  • OID ---- 1.2.840.113549.1.9.20 friendlyName

OID ---- 1.2.840.113549.1.9.21 localKeyId

AttributeValue()

IMPORT_C const RPointerArray < TDesC8 > & AttributeValue ( ) const

Returns the DER encoded attribute values present in the Safe Bag.

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aBagAttributes ) [private]
This decodes the entire BagAttributes structure
leave
if the bag attribute set is not a sequence or class tag name is not Universal.

Parameters

const TDesC8 & aBagAttributes Contains a PKCS#12 attribute set.

NewL(const TDesC8 &)

IMPORT_C CDecPkcs12Attribute * NewL ( const TDesC8 & aBagAttributes ) [static]

Creates a new PKCS#12 attribute object.

PKCS#12AttrSet ATTRIBUTE ::= { friendlyName | localKeyId, ... -- Other attributes are allowed }

leave
if the bag attribute set is not a sequence or class tag name is not Universal.

Parameters

const TDesC8 & aBagAttributes Contains a PKCS#12 attribute set.

operator=(const CDecPkcs12Attribute &)

CDecPkcs12Attribute & operator= ( const CDecPkcs12Attribute & aDecPkcs12Atrribute ) [private]

Assignment operator.

Parameters

const CDecPkcs12Attribute & aDecPkcs12Atrribute A CDecPkcs12Attribute object.

Member Data Documentation

HBufC * iAttributeId

HBufC * iAttributeId [private]

Contains the object identifier indicating the attribute type

RPointerArray< TDesC8 > iAttributeValue

RPointerArray < TDesC8 > iAttributeValue [private]

Contains the attribute value which is an DER encoded value