CPKCS10Attributes Class Reference

class CPKCS10Attributes : public CBase

Class for encoding a collection of certificate attributes and passing them to the CPKCS10Request class. Some possible attributes are described in PKCS#9.

Inherits from

Constructor & Destructor Documentation

CPKCS10Attributes()

CPKCS10Attributes()[private]

Default constructor.

~CPKCS10Attributes()

IMPORT_C~CPKCS10Attributes()

Member Functions Documentation

AddAttributeL(CPKCS10Attribute *)

IMPORT_C voidAddAttributeL(CPKCS10Attribute *aAttr)

Adds a new attribute for the certificate request.

Parameters

CPKCS10Attribute * aAttrThe attribute to add - this method takes ownership.

AddPKCSAttributeL(CPKCSAttributeBase *)

IMPORT_C voidAddPKCSAttributeL(CPKCSAttributeBase *aAttr)

Adds a new attribute for the certificate request.

Parameters

CPKCSAttributeBase * aAttrThe attribute to add - this method takes ownership.

ConstructL()

voidConstructL()[private]
Second phase construction function.
Note:
The structure of the attribute node is as follows:
		  SET
		    SEQUENCE
			  OID of attribute
			  SET values
			...

NewL()

IMPORT_C CPKCS10Attributes *NewL()[static]

Creates an instance of the class.

NewLC()

IMPORT_C CPKCS10Attributes *NewLC()[static]

Creates an instance of the class.

TakeEncodingC()

CASN1EncBase *TakeEncodingC()

Get the ASN1 encoding of the attributes and relinquish ownership of it, leaving it on the cleanup stack. This is called by CPKCS10Request when SetAttributes() is called. This method may leave with E32USER-CBase:66 if a stack frame for the next PushL() cannot be allocated.

TakeEncodingLC()

CASN1EncBase *TakeEncodingLC()
Get the ASN.1 encoding of the attribute and relinquish ownership of it, leaving it on the cleanup stack. This is called by CPKCS10Request when SetAttributes() is called.
panic
E32USER-CBase 66 if a stack frame for the next PushL() cannot be allocated.

Member Data Documentation

CASN1EncSequence * iRoot

CASN1EncSequence *iRoot[private]

Pointer to sequence of user-supplied certificate attributes. AddAttributeL method is used to create and fill this member. If it is initialized by the time CalculateEncodingL method is called, the latter uses attributes from this member variable for the request, otherwise no attributes are inserted into the request.

See AddAttributeL for the explanation of ASN.1 encoding of attributes.