MCertInfo Class Reference

#include <cctcertinfo.h>

Link against: ctframework.lib

class MCertInfo

Detailed Description

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.

Member Attribute Documentation

iCertificateId

TInt iCertificateId[protected]

iCertificateOwnerType

TCertificateOwnerType iCertificateOwnerType[protected]

iDeletable

TBool iDeletable[protected]

iFormat

TCertificateFormat iFormat[protected]

iIssuerKeyId

TKeyIdentifier iIssuerKeyId[protected]

iLabel

TCertLabel iLabel[protected]

iSize

TInt iSize[protected]

iSubjectKeyId

TKeyIdentifier iSubjectKeyId[protected]

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]

MCertInfo ( const MCertInfo & )

IMPORT_CMCertInfo(const MCertInfo &aOther)[protected]

~MCertInfo ( )

IMPORT_C~MCertInfo()[protected]

Member Function Documentation

ConstructL ( const TDesC8 * )

IMPORT_C voidConstructL(const TDesC8 *aIssuerHash)[protected]

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
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
aStreamStream from which the object should be internalised.

IssuerHash ( )

const TDesC8 *IssuerHash()const [protected]