CSubjectPublicKeyInfo Class Reference

#include <signed.h>

Link against: crypto.lib

class CSubjectPublicKeyInfo : public CBase

Inherits from

  • CSubjectPublicKeyInfo

Detailed Description

A base class for a container that holds information about a subject public key.

It contains the algorithm ID, the encoded public key and the encoded parameters.

Since
v6.0

Member Attribute Documentation

iAlgId

CAlgorithmIdentifier *iAlgId[protected]

The algorithm ID.

iEncodedKeyData

HBufC8 *iEncodedKeyData[protected]

A heap descriptor representing the encoded key data.

Constructor & Destructor Documentation

~CSubjectPublicKeyInfo ( )

IMPORT_C~CSubjectPublicKeyInfo()

Destructor.

Frees all resources owned by the object.

Member Function Documentation

AlgorithmId ( )

IMPORT_C TAlgorithmIdAlgorithmId()const

Gets the algorithm ID.

Return Value
The algorithm ID.

ConstructL ( const CSubjectPublicKeyInfo & )

IMPORT_C voidConstructL(const CSubjectPublicKeyInfo &aSubjectPublicKeyInfo)[protected, virtual]

Second-phase constructor.

Parameters
aSubjectPublicKeyInfoThe subject public key object to be copied.

EncodedParams ( )

IMPORT_C const TPtrC8EncodedParams()const

Gets the encoded parameters required by the algorithm.

Return Value
A non-modifiable pointer descriptor representing the encoded parameters.

KeyData ( )

IMPORT_C const TPtrC8KeyData()const

Gets the encoded public key data.

Return Value
A non-modifiable pointer descriptor representing the encoded public key data.

NewL ( const CSubjectPublicKeyInfo & )

IMPORT_C CSubjectPublicKeyInfo *NewL(const CSubjectPublicKeyInfo &aSubjectPublicKeyInfo)[static]

Creates a new subject public key object copied from an existing object.

Parameters
aSubjectPublicKeyInfoThe subject public key object to be copied.
Return Value
A pointer to the new public key object.

NewLC ( const CSubjectPublicKeyInfo & )

IMPORT_C CSubjectPublicKeyInfo *NewLC(const CSubjectPublicKeyInfo &aSubjectPublicKeyInfo)[static]

Creates a new subject public key object copied from an existing object and puts a pointer to the new object onto the cleanup stack.

Parameters
aSubjectPublicKeyInfoThe subject public key object to be copied.
Return Value
A pointer to the new public key object.