#include <ccertattributefilter.h>
| class CCertAttributeFilter : public CBase |
| Public Member Functions | |
|---|---|
| IMPORT_C void | ExternalizeL(RWriteStream &) |
| IMPORT_C CCertAttributeFilter * | NewL() |
| IMPORT_C CCertAttributeFilter * | NewL(RReadStream &) |
| IMPORT_C CCertAttributeFilter * | NewLC() |
| IMPORT_C void | SetFormat(TCertificateFormat) |
| IMPORT_C void | SetIssuerKeyId(const TKeyIdentifier &) |
| IMPORT_C void | SetKeyUsage(TKeyUsageX509) |
| IMPORT_C void | SetLabel(const TCertLabel &) |
| IMPORT_C void | SetOwnerType(TCertificateOwnerType) |
| IMPORT_C void | SetSubjectKeyId(const TKeyIdentifier &) |
| IMPORT_C void | SetUid(TUid) |
A filter for specifying which certificates are required.
On construction it will accept everything. The Set... functions can then be used to restrict it.
| 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.
| 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.
| IMPORT_C CCertAttributeFilter * | NewL | ( | ) | [static] |
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.
| IMPORT_C CCertAttributeFilter * | NewL | ( | RReadStream & | aStream | ) | [static] |
Read a certificate attribute filter from a stream.
| IMPORT_C CCertAttributeFilter * | NewLC | ( | ) | [static] |
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.
| IMPORT_C void | SetFormat | ( | TCertificateFormat | aFormat | ) |
Sets the format of the returned certificates
| Parameter | Description |
|---|---|
| aFormat | The required format |
| IMPORT_C void | SetIssuerKeyId | ( | const TKeyIdentifier & | aIssuerKeyId | ) |
Sets the issuer key ID that returned certificates must have.
| Parameter | Description |
|---|---|
| aIssuerKeyId | The issuer key ID |
| 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!
| Parameter | Description |
|---|---|
| aKeyUsage | The key usage |
| IMPORT_C void | SetLabel | ( | const TCertLabel & | aLabel | ) |
Sets the label of the cert that the filter will accept.
| Parameter | Description |
|---|---|
| aLabel | The new label |
| IMPORT_C void | SetOwnerType | ( | TCertificateOwnerType | aOwnerType | ) |
Sets the owner type of the returned certificates
| Parameter | Description |
|---|---|
| aOwnerType | The owner type. |
| IMPORT_C void | SetSubjectKeyId | ( | const TKeyIdentifier & | aSubjectKeyId | ) |
Sets the subject key ID that returned certificates must have.
| Parameter | Description |
|---|---|
| aSubjectKeyId | The subject key ID |
| IMPORT_C void | SetUid | ( | TUid | aUid | ) |
Sets the UID of an application which the certificate must support
| Parameter | Description |
|---|---|
| aUid | The new UID |