CCertAttributeFilter Class Reference
#include
<ccertattributefilter.h>
Link against: ctframework.lib
class CCertAttributeFilter : public CBase |
Detailed Description
A filter for specifying which certificates are required.
On construction it will accept everything. The Set... functions can then be used to restrict it.
Member Attribute Documentation
iFormat
The format of certificates that should be included.
iFormatIsSet
Indicates that iFormat should be used.
iIssuerKeyId
The issuer key that returned certs should have.
iIssuerKeyIdIsSet
Indicates that iIssuerKeyId should be used.
iKeyUsage
The usage of keys that should be returned.
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.
iLabelIsSet
Indicates that iLabel should be used.
iOwnerType
The owner type of returned certificates.
iOwnerTypeIsSet
Indicates that iOwnerType should be used.
iSubjectKeyId
The subject key that returned certs should have.
iSubjectKeyIdIsSet
Indicates that iSubjectKeyId should be used.
iUid
The application UID that all returned certificates must have.
iUidIsSet
Indicates that iUid should be used.
Member Function Documentation
ExternalizeL ( RWriteStream & )
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.
NewL ( )
Returns a default filter. This filter accepts any certificate. Call the Set... functions to restrict what it accepts.
Returns: A pointer to a new CCertAttributeFilter object.
NewL ( RReadStream & )
Read a certificate attribute filter from a stream.
NewLC ( )
Returns a default filter. This filter accepts any certificate. It leaves the filter on the cleanup stack.
Returns: A pointer to a new CCertAttributeFilter object.
SetFormat ( TCertificateFormat )
Sets the format of the returned certificates
Parameter | Description | aFormat | The required format |
SetIssuerKeyId ( const TKeyIdentifier & )
Sets the issuer key ID that returned certificates must have.
Parameter | Description | aIssuerKeyId | The issuer key ID |
SetKeyUsage ( TKeyUsageX509 )
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!
Parameter | Description | aKeyUsage | The key usage |
SetLabel ( const TCertLabel & )
Sets the label of the cert that the filter will accept.
Parameter | Description | aLabel | The new label |
SetOwnerType ( TCertificateOwnerType )
Sets the owner type of the returned certificates
Parameter | Description | aOwnerType | The owner type. |
SetSubjectKeyId ( const TKeyIdentifier & )
Sets the subject key ID that returned certificates must have.
Parameter | Description | aSubjectKeyId | The subject key ID |
SetUid ( TUid )
IMPORT_C void | SetUid | ( | TUid | aUid | ) | |
Sets the UID of an application which the certificate must support
Parameter | Description | aUid | The new UID |