Swi::CCertificateInfo Class Reference

class Swi::CCertificateInfo : public CBase

A lightweight class containing certificate information.

Inherits from

Constructor & Destructor Documentation

CCertificateInfo()

CCertificateInfo ( ) [private]

~CCertificateInfo()

~CCertificateInfo ( ) [virtual]

Member Functions Documentation

ConstructL(const CX509Certificate &)

void ConstructL ( const CX509Certificate & aCertificate ) [private]

Parameters

const CX509Certificate & aCertificate

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const

Externalizes this object to the specified write stream.

Parameters

RWriteStream & aStream Stream to which the contents should be externalized.

Fingerprint()

const TDesC8 & Fingerprint ( ) const [inline]

Gets the subject name of the certificate.

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream )

Initializes this object from the specified read stream.

Parameters

RReadStream & aStream Stream 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 & aCertificate The 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 & aStream The 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 & aCertificate The 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 & aStream The stream to read the certificate info from.

ReadBufFromStreamL(HBufC *&, RReadStream &)

void ReadBufFromStreamL ( 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 *& aBuffer Reference to the pointer which will point at newly allocated buffer.
RReadStream & aStream Stream from which the descriptor is read.

ReadBufFromStreamL(HBufC8 *&, RReadStream &)

void ReadBufFromStreamL ( 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 *& aBuffer Reference to the pointer which will point at newly allocated buffer.
RReadStream & aStream Stream 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]