CCertAttributeFilter Class Reference

class CCertAttributeFilter : public CBase

A filter for specifying which certificates are required.

On construction it will accept everything. The Set... functions can then be used to restrict it.

Inherits from

Constructor & Destructor Documentation

CCertAttributeFilter()

CCertAttributeFilter ( ) [private]

Member Functions Documentation

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Write a certificate attribute filter to a stream.

Externalisation - only output the fields that are set, using the TCertAttribute enum to identify them. Mark the end of the list with ECertAttributeNull.

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

void InternalizeL ( RReadStream & aStream ) [private]

Parameters

RReadStream & aStream

NewL()

IMPORT_C CCertAttributeFilter * NewL ( ) [static]

Returns a default filter. This filter accepts any certificate. Call the Set... functions to restrict what it accepts.

NewL(RReadStream &)

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

Read a certificate attribute filter from a stream.

Parameters

RReadStream & aStream

NewLC()

IMPORT_C CCertAttributeFilter * NewLC ( ) [static]

Returns a default filter. This filter accepts any certificate. It leaves the filter on the cleanup stack.

SetFormat(TCertificateFormat)

IMPORT_C void SetFormat ( TCertificateFormat aFormat )

Sets the format of the returned certificates

Parameters

TCertificateFormat aFormat The required format

SetIssuerKeyId(const TKeyIdentifier &)

IMPORT_C void SetIssuerKeyId ( const TKeyIdentifier & aIssuerKeyId )

Sets the issuer key ID that returned certificates must have.

Parameters

const TKeyIdentifier & aIssuerKeyId The issuer key ID

SetKeyUsage(TKeyUsageX509)

IMPORT_C void SetKeyUsage ( TKeyUsageX509 aKeyUsage )

Sets the usage that returned certs must be used for.

Note that the usage is supplied using X509 scheme - keystore interfaces use the PKCS#15 scheme!

Parameters

TKeyUsageX509 aKeyUsage The key usage

SetLabel(const TCertLabel &)

IMPORT_C void SetLabel ( const TCertLabel & aLabel )

Sets the label of the cert that the filter will accept.

Parameters

const TCertLabel & aLabel The new label

SetOwnerType(TCertificateOwnerType)

IMPORT_C void SetOwnerType ( TCertificateOwnerType aOwnerType )

Sets the owner type of the returned certificates

Parameters

TCertificateOwnerType aOwnerType The owner type.

SetSubjectKeyId(const TKeyIdentifier &)

IMPORT_C void SetSubjectKeyId ( const TKeyIdentifier & aSubjectKeyId )

Sets the subject key ID that returned certificates must have.

Parameters

const TKeyIdentifier & aSubjectKeyId The subject key ID

SetUid(TUid)

IMPORT_C void SetUid ( TUid aUid )

Sets the UID of an application which the certificate must support

Parameters

TUid aUid The new UID

Member Data Documentation

TCertificateFormat iFormat

TCertificateFormat iFormat

The format of certificates that should be included.

TBool iFormatIsSet

TBool iFormatIsSet

Indicates that iFormat should be used.

TKeyIdentifier iIssuerKeyId

TKeyIdentifier iIssuerKeyId

The issuer key that returned certs should have.

TBool iIssuerKeyIdIsSet

TBool iIssuerKeyIdIsSet

Indicates that iIssuerKeyId should be used.

TKeyUsageX509 iKeyUsage

TKeyUsageX509 iKeyUsage

The usage of keys that should be returned.

TCertLabel iLabel

TCertLabel iLabel

The filter data. Each data item is accompanied by a '..IsSet' boolean which indicates if the item should be used. Unset values (whose ..IsSet variable is EFalse) should be ignored. The label that returned certificates must have.

TBool iLabelIsSet

TBool iLabelIsSet

Indicates that iLabel should be used.

TCertificateOwnerType iOwnerType

TCertificateOwnerType iOwnerType

The owner type of returned certificates.

TBool iOwnerTypeIsSet

TBool iOwnerTypeIsSet

Indicates that iOwnerType should be used.

TKeyIdentifier iSubjectKeyId

TKeyIdentifier iSubjectKeyId

The subject key that returned certs should have.

TBool iSubjectKeyIdIsSet

TBool iSubjectKeyIdIsSet

Indicates that iSubjectKeyId should be used.

TUid iUid

TUid iUid

The application UID that all returned certificates must have.

TBool iUidIsSet

TBool iUidIsSet

Indicates that iUid should be used.