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.

Public Member Functions
IMPORT_C void ExternalizeL ( RWriteStream &)
IMPORT_C void InternalizeL ( RReadStream &)
Protected Member Functions
MCertInfo ()
MCertInfo (const TDesC &, TCertificateFormat , TCertificateOwnerType , TInt , const TKeyIdentifier *, const TKeyIdentifier *, TInt , TBool )
MCertInfo (const MCertInfo &)
~MCertInfo ()
IMPORT_C void ConstructL (const TDesC8 *)
const TDesC8 * IssuerHash ()
Private Member Functions
TBool Valid ()
const MCertInfo & operator= (const MCertInfo &)
Protected Attributes
TInt iCertificateId
TCertificateOwnerType iCertificateOwnerType
TBool iDeletable
TCertificateFormat iFormat
TKeyIdentifier iIssuerKeyId
TCertLabel iLabel
TInt iSize
TKeyIdentifier iSubjectKeyId
Private Attributes
HBufC8 * iIssuerHash

Constructor & Destructor Documentation

MCertInfo()

IMPORT_C MCertInfo ( ) [protected]

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

IMPORT_C MCertInfo ( const TDesC & aLabel,
TCertificateFormat aFormat,
TCertificateOwnerType aCertificateOwnerType,
TInt aSize,
const TKeyIdentifier * aSubjectKeyId,
const TKeyIdentifier * aIssuerKeyId,
TInt aCertificateId,
TBool aDeletable
) [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_C MCertInfo ( const MCertInfo & aOther ) [protected]

Parameters

const MCertInfo & aOther

~MCertInfo()

IMPORT_C ~MCertInfo ( ) [protected]

Member Functions Documentation

ConstructL(const TDesC8 *)

IMPORT_C void ConstructL ( const TDesC8 * aIssuerHash ) [protected]

Parameters

const TDesC8 * aIssuerHash

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( 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 & aStream Stream to which the object should be externalised.

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( 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 & aStream Stream 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]