Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <signed.h>
Link against: crypto.lib

Class CCertificate

class CCertificate : public CSignedObject;

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.

Derivation

Members

Defined in CCertificate:

Inherited from CBase:

Inherited from CSignedObject:


Construction and destruction


~CCertificate()

IMPORT_C ~CCertificate();

Description

Destructor.

Frees all resources owned by the object.

[Top]


Member functions


PublicKey()const

IMPORT_C const CSubjectPublicKeyInfo& PublicKey() const;

Description

Gets the subject public key information.

Return value

const CSubjectPublicKeyInfo &

The subject public key information.


SerialNumber()const

IMPORT_C const TPtrC8 SerialNumber() const;

Description

Gets the serial number.

Return value

const TPtrC8

A non-modifiable pointer descriptor representing the serial number.


ValidityPeriod()const

IMPORT_C const CValidityPeriod& ValidityPeriod() const;

Description

Gets the validity period.

Return value

const CValidityPeriod &

The validity period.


IsSelfSignedL()const

IMPORT_C virtual TBool IsSelfSignedL() const=0;

Description

Tests whether a certificate is self-signed.

Return value

TBool

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


SubjectL()const

IMPORT_C virtual HBufC* SubjectL() const=0;

Description

Gets the subject.

Return value

HBufC16 *

A heap descriptor representing the subject.


IssuerL()const

IMPORT_C virtual HBufC* IssuerL() const=0;

Description

Gets the issuer.

Return value

HBufC16 *

A heap descriptor representing the issuer.


KeyIdentifierL()const

IMPORT_C virtual TKeyIdentifier KeyIdentifierL() const;

Description

Gets the key identifier.

Return value

TBuf8

The key identifier.

[Top]


Member data


iSerialNumber

protected: HBufC8 * iSerialNumber;

Description

The serial number.


iValidityPeriod

protected: CValidityPeriod * iValidityPeriod;

Description

The validity period.


iSubjectPublicKeyInfo

protected: CSubjectPublicKeyInfo * iSubjectPublicKeyInfo;

Description

The subject public key information.