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.
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) |
Private Member Functions | |
---|---|
CCertAttributeFilter() | |
void | InternalizeL(RReadStream &) |
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Write a certificate attribute filter to a stream.
RWriteStream & aStream |
void | InternalizeL | ( | RReadStream & | aStream | ) | [private] |
RReadStream & aStream |
IMPORT_C CCertAttributeFilter * | NewL | ( | ) | [static] |
Returns a default filter. This filter accepts any certificate. Call the Set... functions to restrict what it accepts.
A pointer to a new CCertAttributeFilter object.
IMPORT_C CCertAttributeFilter * | NewL | ( | RReadStream & | aStream | ) | [static] |
Read a certificate attribute filter from a stream.
RReadStream & aStream |
IMPORT_C CCertAttributeFilter * | NewLC | ( | ) | [static] |
Returns a default filter. This filter accepts any certificate. It leaves the filter on the cleanup stack.
A pointer to a new CCertAttributeFilter object.
IMPORT_C void | SetFormat | ( | TCertificateFormat | aFormat | ) |
Sets the format of the returned certificates
TCertificateFormat aFormat | The required format |
IMPORT_C void | SetIssuerKeyId | ( | const TKeyIdentifier & | aIssuerKeyId | ) |
Sets the issuer key ID that returned certificates must have.
const TKeyIdentifier & 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!
TKeyUsageX509 aKeyUsage | The key usage |
IMPORT_C void | SetLabel | ( | const TCertLabel & | aLabel | ) |
Sets the label of the cert that the filter will accept.
const TCertLabel & aLabel | The new label |
IMPORT_C void | SetOwnerType | ( | TCertificateOwnerType | aOwnerType | ) |
Sets the owner type of the returned certificates
TCertificateOwnerType aOwnerType | The owner type. |
IMPORT_C void | SetSubjectKeyId | ( | const TKeyIdentifier & | aSubjectKeyId | ) |
Sets the subject key ID that returned certificates must have.
const TKeyIdentifier & aSubjectKeyId | The subject key ID |
IMPORT_C void | SetUid | ( | TUid | aUid | ) |
Sets the UID of an application which the certificate must support
TUid aUid | The new UID |
TCertificateFormat | iFormat |
The format of certificates that should be included.
TKeyIdentifier | iIssuerKeyId |
The issuer key that returned certs should have.
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.
TCertificateOwnerType | iOwnerType |
The owner type of returned certificates.
TKeyIdentifier | iSubjectKeyId |
The subject key that returned certs should have.