CCertificate Class Reference

#include <signed.h>

Link against: crypto.lib

class CCertificate : public CSignedObject

Inherits from

Protected Attributes
HBufC8 *iSerialNumber
CSubjectPublicKeyInfo *iSubjectPublicKeyInfo
CValidityPeriod *iValidityPeriod
Public Member Functions
~CCertificate()
pure virtual IMPORT_C TBoolIsSelfSignedL()
pure virtual IMPORT_C HBufC *IssuerL()
virtual IMPORT_C TKeyIdentifierKeyIdentifierL()
IMPORT_C const CSubjectPublicKeyInfo &PublicKey()
IMPORT_C const TPtrC8SerialNumber()
pure virtual IMPORT_C HBufC *SubjectL()
IMPORT_C const CValidityPeriod &ValidityPeriod()
Inherited Attributes
CSignedObject::iEncoding
CSignedObject::iFingerprint
CSignedObject::iKeyFactory
CSignedObject::iParameters
CSignedObject::iSignature
CSignedObject::iSigningAlgorithm
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSignedObject::DataElementEncoding(const TUint)const
CSignedObject::Encoding()const
CSignedObject::ExternalizeL(RWriteStream &)const
CSignedObject::Fingerprint()const
CSignedObject::InternalizeL(RReadStream &)
CSignedObject::SetParametersL(const CSigningKeyParameters &)
CSignedObject::Signature()const
CSignedObject::SignedDataL()const
CSignedObject::SigningAlgorithm()const
CSignedObject::VerifyRSASignatureL(const TDesC8 &)const
CSignedObject::VerifyRSASignatureL(const TDesC8 &,const TDesC8 &)const
CSignedObject::VerifySignatureL(const TDesC8 &)const
CSignedObject::VerifySignatureL(const TDesC8 &,const TDesC8 &)const
CSignedObject::~CSignedObject()

Detailed Description

A data structure that binds a public key to a given individual.

A certificate is a signed object, and adds a serial number, a validity period and a subject public key.

This is a base class for classes that implement certificates of particular types.

Since
v6.0

Member Attribute Documentation

iSerialNumber

HBufC8 *iSerialNumber[protected]

The serial number.

iSubjectPublicKeyInfo

CSubjectPublicKeyInfo *iSubjectPublicKeyInfo[protected]

The subject public key information.

iValidityPeriod

CValidityPeriod *iValidityPeriod[protected]

The validity period.

Constructor & Destructor Documentation

~CCertificate ( )

IMPORT_C~CCertificate()

Destructor.

Frees all resources owned by the object.

Member Function Documentation

IsSelfSignedL ( )

IMPORT_C TBoolIsSelfSignedL()const [pure virtual]

Tests whether a certificate is self-signed.

Return Value
ETrue, if it is self-signed; EFalse, otherwise.

IssuerL ( )

IMPORT_C HBufC *IssuerL()const [pure virtual]

Gets the issuer.

Return Value
A heap descriptor representing the issuer.

KeyIdentifierL ( )

IMPORT_C TKeyIdentifierKeyIdentifierL()const [virtual]

Gets the key identifier.

Return Value
The key identifier.

PublicKey ( )

IMPORT_C const CSubjectPublicKeyInfo &PublicKey()const

Gets the subject public key information.

Return Value
The subject public key information.

SerialNumber ( )

IMPORT_C const TPtrC8SerialNumber()const

Gets the serial number.

Return Value
A non-modifiable pointer descriptor representing the serial number.

SubjectL ( )

IMPORT_C HBufC *SubjectL()const [pure virtual]

Gets the subject.

Return Value
A heap descriptor representing the subject.

ValidityPeriod ( )

IMPORT_C const CValidityPeriod &ValidityPeriod()const

Gets the validity period.

Return Value
The validity period.