#include <ccertattributefilter.h>
Link against: ctframework.lib
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.
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.
IMPORT_C void | SetFormat | ( | TCertificateFormat | aFormat | ) |
Sets the format of the returned certificates
Parameters | |
---|---|
aFormat | The required format |
IMPORT_C void | SetIssuerKeyId | ( | const TKeyIdentifier & | aIssuerKeyId | ) |
Sets the issuer key ID that returned certificates must have.
Parameters | |
---|---|
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!
Parameters | |
---|---|
aKeyUsage | The key usage |
IMPORT_C void | SetLabel | ( | const TCertLabel & | aLabel | ) |
Sets the label of the cert that the filter will accept.
Parameters | |
---|---|
aLabel | The new label |
IMPORT_C void | SetOwnerType | ( | TCertificateOwnerType | aOwnerType | ) |
Sets the owner type of the returned certificates
Parameters | |
---|---|
aOwnerType | The owner type. |
IMPORT_C void | SetSubjectKeyId | ( | const TKeyIdentifier & | aSubjectKeyId | ) |
Sets the subject key ID that returned certificates must have.
Parameters | |
---|---|
aSubjectKeyId | The subject key ID |
IMPORT_C void | SetUid | ( | TUid | aUid | ) |
Sets the UID of an application which the certificate must support
Parameters | |
---|---|
aUid | The new UID |