Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: 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:
IsSelfSignedL(), IssuerL(), KeyIdentifierL(), PublicKey(), SerialNumber(), SubjectL(), ValidityPeriod(), iSerialNumber, iSubjectPublicKeyInfo, iValidityPeriod, ~CCertificate()

Inherited from CBase:
Delete(), Extension_(), operator new()

Inherited from CSignedObject:
DataElementEncoding(), Encoding(), ExternalizeL(), Fingerprint(), InternalizeL(), SetParametersL(), Signature(), SignedDataL(), SigningAlgorithm(), VerifySignatureL(), iEncoding, iFingerprint, iKeyFactory, iParameters, iSignature, iSigningAlgorithm


Construction and destruction


~CCertificate()

IMPORT_C ~CCertificate();

Description

Destructor.

Frees all resources owned by the object.

[Top]


Member functions


PublicKey()

IMPORT_C const CSubjectPublicKeyInfo &PublicKey() const;

Description

Gets the subject public key information.

Return value

const CSubjectPublicKeyInfo &

The subject public key information.


SerialNumber()

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()

IMPORT_C const CValidityPeriod &ValidityPeriod() const;

Description

Gets the validity period.

Return value

const CValidityPeriod &

The validity period.


IsSelfSignedL()

virtual IMPORT_C TBool IsSelfSignedL() const=0;

Description

Tests whether a certificate is self-signed.

Return value

TBool

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


SubjectL()

virtual IMPORT_C HBufC *SubjectL() const=0;

Description

Gets the subject.

Return value

HBufC *

A heap descriptor representing the subject.


IssuerL()

virtual IMPORT_C HBufC *IssuerL() const=0;

Description

Gets the issuer.

Return value

HBufC *

A heap descriptor representing the issuer.


KeyIdentifierL()

virtual IMPORT_C TKeyIdentifier KeyIdentifierL() const;

Description

Gets the key identifier.

Return value

TKeyIdentifier

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.