CPKCS10Attribute Class Reference

class CPKCS10Attribute : public CPKCSAttributeBase

Class representing a generic certificate attribute. Attributes have an object identifier and one or more values.

Inherits from

Constructor & Destructor Documentation

CPKCS10Attribute()

CPKCS10Attribute()[private]

~CPKCS10Attribute()

~CPKCS10Attribute()[virtual]

Member Functions Documentation

AddValueL(CASN1EncBase *)

IMPORT_C voidAddValueL(CASN1EncBase *aASN1)

Add a value to the attribute.

Parameters

CASN1EncBase * aASN1ASN1 encoding object for attribute value -- this method takes ownership.

ConstructL(const TDesC &, CASN1EncBase *)

voidConstructL(const TDesC &aAttrOID,
CASN1EncBase *aASN1
)[private]

Parameters

const TDesC & aAttrOID
CASN1EncBase * aASN1

GetEncodingLC()

CASN1EncBase *GetEncodingLC()[virtual]
Calls the base class implementation for getting the ASN1 encoding of the attribute. Note that this method cannot be reused unless ResetL() has been called.
panic
E32USER-CBase 66 if a stack frame for the next PushL() cannot be allocated.

NewL(const TDesC &, CASN1EncBase *)

IMPORT_C CPKCS10Attribute *NewL(const TDesC &aAttrOID,
CASN1EncBase *aASN1
)[static]

Create an attribute with a specified OID and one value. The value forms part of a set. Additional values can be added by calling the AddValueL method.

Parameters

const TDesC & aAttrOIDThe specified OID in the form a.b.c. etc.
CASN1EncBase * aASN1ASN1 encoding object for attribute value -- this method takes ownership.

NewLC(const TDesC &)

IMPORT_C CPKCS10Attribute *NewLC(const TDesC &aAttrOID)[static]

Create an attribute with a specified OID and no values, leaving it on the cleanup stack. NOTE: This method is deprecated. Use the other forms of NewLC instead.

Parameters

const TDesC & aAttrOIDThe specified OID in the form a.b.c. etc.

NewLC(const TDesC &, CASN1EncBase *)

IMPORT_C CPKCS10Attribute *NewLC(const TDesC &aAttrOID,
CASN1EncBase *aASN1
)[static]

Create an attribute with a specified OID and one value, leaving it on the cleanup stack. The value forms part of a set. Additional values can be added by calling the AddValueL method.

Parameters

const TDesC & aAttrOIDThe specified OID in the form a.b.c. etc.
CASN1EncBase * aASN1ASN1 encoding object for attribute value -- this method takes ownership.

ResetL(const TDesC &, CASN1EncBase *)

IMPORT_C voidResetL(const TDesC &aAttrOID,
CASN1EncBase *aASN1
)

ResetL method to allow for re-use of the generic attribute object. Additional values can be added by calling the AddValueL method.

Parameters

const TDesC & aAttrOIDThe specified OID in the form a.b.c. etc.
CASN1EncBase * aASN1ASN1 encoding object for attribute value -- this method takes ownership.

TakeEncodingC()

CASN1EncBase *TakeEncodingC()

Get the ASN1 encoding of the attribute and relinquish ownership of it, leaving it on the cleanup stack. This is called by CPKCS10Attribtues when AddAttribute() is called. This method may leave with E32USER-CBase:66 if a stack frame for the next PushL() cannot be allocated. NOTE: This method is deprecated. Use GetEncodingLC() instead.

TakeEncodingLC()

CASN1EncBase *TakeEncodingLC()

Get the ASN1 encoding of the attribute and relinquish ownership of it, leaving it on the cleanup stack. This is called by CPKCS10Attribtues when AddAttribute() is called. This method may leave with E32USER-CBase:66 if a stack frame for the next PushL() cannot be allocated. NOTE: This method is deprecated. Use GetEncodingLC() instead.