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.
Constructor & Destructor Documentation
CCertAttributeFilter()
CCertAttributeFilter
|
(
|
)
|
[private]
|
Member Functions 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.
InternalizeL(RReadStream &)
NewL()
Returns a default filter. This filter accepts any certificate. Call the Set... functions to restrict what it accepts.
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.
SetFormat(TCertificateFormat)
IMPORT_C void
|
SetFormat
|
(
|
TCertificateFormat
|
aFormat
|
)
|
|
Sets the format of the returned certificates
Parameters
TCertificateFormat
aFormat
|
The required format
|
SetIssuerKeyId(const TKeyIdentifier &)
Sets the issuer key ID that returned certificates must have.
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.
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.
SetUid(TUid)
IMPORT_C void
|
SetUid
|
(
|
TUid
|
aUid
|
)
|
|
Sets the UID of an application which the certificate must support
Member Data Documentation
TCertificateFormat
iFormat
TCertificateFormat
|
iFormat
|
The format of certificates that should be included.
TBool
iFormatIsSet
Indicates that iFormat should be used.
TKeyIdentifier
iIssuerKeyId
The issuer key that returned certs should have.
TBool
iIssuerKeyIdIsSet
Indicates that iIssuerKeyId should be used.
TKeyUsageX509
iKeyUsage
The usage of keys that should be returned.
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
Indicates that iLabel should be used.
TCertificateOwnerType
iOwnerType
TCertificateOwnerType
|
iOwnerType
|
The owner type of returned certificates.
TBool
iOwnerTypeIsSet
Indicates that iOwnerType should be used.
TKeyIdentifier
iSubjectKeyId
The subject key that returned certs should have.
TBool
iSubjectKeyIdIsSet
Indicates that iSubjectKeyId should be used.
TUid
iUid
The application UID that all returned certificates must have.
TBool
iUidIsSet
Indicates that iUid should be used.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.