Swi::CCertificateInfo Class Reference

class Swi::CCertificateInfo : public CBase

A lightweight class containing certificate information.

Inherits from

  • Swi::CCertificateInfo

Constructor & Destructor Documentation

CCertificateInfo()

CCertificateInfo()[private]

~CCertificateInfo()

~CCertificateInfo()[virtual]

Member Functions Documentation

ConstructL(const CX509Certificate &)

voidConstructL(const CX509Certificate &aCertificate)[private]

Parameters

const CX509Certificate & aCertificate

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const

Externalizes this object to the specified write stream.

Parameters

RWriteStream & aStreamStream to which the contents should be externalized.

Fingerprint()

const TDesC8 &Fingerprint()const [inline]

Gets the subject name of the certificate.

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)

Initializes this object from the specified read stream.

Parameters

RReadStream & aStreamStream from which the contents should be internalized.

IssuerName()

const TDesC &IssuerName()const [inline]

Gets the issuer name of the certificate.

NewL(const CX509Certificate &)

IMPORT_C CCertificateInfo *NewL(const CX509Certificate &aCertificate)[static]

Constructs a new certificate info object from an existing X509 Certificate.

Parameters

const CX509Certificate & aCertificateThe X509 certificate to construct the information from.

NewL(RReadStream &)

IMPORT_C CCertificateInfo *NewL(RReadStream &aStream)[static]

Constructs a new certificate info object from a readable stream.

Parameters

RReadStream & aStreamThe stream to read the certificate info from.

NewLC(const CX509Certificate &)

IMPORT_C CCertificateInfo *NewLC(const CX509Certificate &aCertificate)[static]

Constructs a new certificate info object from an existing X509 Certificate.

The returned pointer is put onto the cleanup stack.

Parameters

const CX509Certificate & aCertificateThe X509 certificate to construct the information from.

NewLC(RReadStream &)

IMPORT_C CCertificateInfo *NewLC(RReadStream &aStream)[static]

Constructs a new certificate info object from a readable stream.

The returned pointer is put onto the cleanup stack.

Parameters

RReadStream & aStreamThe stream to read the certificate info from.

ReadBufFromStreamL(HBufC *&, RReadStream &)

voidReadBufFromStreamL(HBufC *&aBuffer,
RReadStream &aStream
)[private]

Helper function used to internalize a descriptor from a stream, into a member variable. This function frees the memory pointed to first.

Parameters

HBufC *& aBufferReference to the pointer which will point at newly allocated buffer.
RReadStream & aStreamStream from which the descriptor is read.

ReadBufFromStreamL(HBufC8 *&, RReadStream &)

voidReadBufFromStreamL(HBufC8 *&aBuffer,
RReadStream &aStream
)[private]

Helper function used to internalize a descriptor from a stream, into a member variable. This function frees the memory pointed to first.

Parameters

HBufC8 *& aBufferReference to the pointer which will point at newly allocated buffer.
RReadStream & aStreamStream from which the descriptor is read.

SerialNumber()

const TDesC8 &SerialNumber()const [inline]

Gets the subject name of the certificate.

SubjectName()

const TDesC &SubjectName()const [inline]

Gets the subject name of the certificate.

ValidFrom()

const TDateTime &ValidFrom()const [inline]

Gets the date the certificate is valid from.

ValidTo()

const TDateTime &ValidTo()const [inline]

Gets the date the certificate is valid until.

Member Data Documentation

HBufC8 * iFingerprint

HBufC8 *iFingerprint[private]

HBufC * iIssuerName

HBufC *iIssuerName[private]

HBufC8 * iSerialNumber

HBufC8 *iSerialNumber[private]

HBufC * iSubjectName

HBufC *iSubjectName[private]

TDateTime iValidFrom

TDateTime iValidFrom[private]

TDateTime iValidTo

TDateTime iValidTo[private]