MCertInfo Class Reference

class MCertInfo

Mix-in class representnig data about a stored certificate. Provides implementation of serialization.

Note that for backward compatibility reasons, the issuer hash is not serialised.

Constructor & Destructor Documentation

MCertInfo()

IMPORT_CMCertInfo()[protected]

MCertInfo(const TDesC &, TCertificateFormat, TCertificateOwnerType, TInt, const TKeyIdentifier *, const TKeyIdentifier *, TInt, TBool)

IMPORT_CMCertInfo(const TDesC &aLabel,
TCertificateFormataFormat,
TCertificateOwnerTypeaCertificateOwnerType,
TIntaSize,
const TKeyIdentifier *aSubjectKeyId,
const TKeyIdentifier *aIssuerKeyId,
TIntaCertificateId,
TBoolaDeletable
)[protected]

Parameters

const TDesC & aLabel
TCertificateFormat aFormat
TCertificateOwnerType aCertificateOwnerType
TInt aSize
const TKeyIdentifier * aSubjectKeyId
const TKeyIdentifier * aIssuerKeyId
TInt aCertificateId
TBool aDeletable

MCertInfo(const MCertInfo &)

IMPORT_CMCertInfo(const MCertInfo &aOther)[protected]

Parameters

const MCertInfo & aOther

~MCertInfo()

IMPORT_C~MCertInfo()[protected]

Member Functions Documentation

ConstructL(const TDesC8 *)

IMPORT_C voidConstructL(const TDesC8 *aIssuerHash)[protected]

Parameters

const TDesC8 * aIssuerHash

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalises an object of this class to a write stream.

The presence of this function means that the standard templated operator<<() can be used to externalise objects of this class.

EXPORT_C void MCertInfo::ExternalizeL(RWriteStream& aStream) const

This method externalizes the MCertInfo object to the given stream. The iDeletable boolean attribute is combined with the iFormat attribute for certstore backward compatibility

Parameters

RWriteStream & aStreamStream to which the object should be externalised.

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Internalises an object of this class from a read stream.

The presence of this function means that the standard templated operator>>() can be used to internalise objects of this class.

Note that this function has assignment semantics: it replaces the old value of the object with a new value read from the read stream.

EXPORT_C void MCertInfo::InternalizeL(RReadStream& aStream)

This method internalizes a MCertInfo object from the given stream. The iDeletable boolean and iFormat attributes are both extracted from the stored iFormat value using for certstore backward compatibility

Parameters

RReadStream & aStreamStream from which the object should be internalised.

IssuerHash()

const TDesC8 *IssuerHash()const [protected]

Valid()

TBool Valid()const [private]

operator=(const MCertInfo &)

const MCertInfo &operator=(const MCertInfo &aOther)[private]

Parameters

const MCertInfo & aOther

Member Data Documentation

TInt iCertificateId

TInt iCertificateId[protected]

TCertificateOwnerType iCertificateOwnerType

TCertificateOwnerType iCertificateOwnerType[protected]

TBool iDeletable

TBool iDeletable[protected]

TCertificateFormat iFormat

TCertificateFormat iFormat[protected]

HBufC8 * iIssuerHash

HBufC8 *iIssuerHash[private]

TKeyIdentifier iIssuerKeyId

TKeyIdentifier iIssuerKeyId[protected]

TCertLabel iLabel

TCertLabel iLabel[protected]

TInt iSize

TInt iSize[protected]

TKeyIdentifier iSubjectKeyId

TKeyIdentifier iSubjectKeyId[protected]