MCertStore Class Reference
Public Member Functions |
---|
pure virtual void | Applications(const CCTCertInfo &, RArray< TUid > &, TRequestStatus &) |
pure virtual void | CancelApplications() |
pure virtual void | CancelGetCert() |
pure virtual void | CancelIsApplicable() |
pure virtual void | CancelList() |
pure virtual void | CancelRetrieve() |
pure virtual void | CancelTrusted() |
pure virtual void | GetCert(CCTCertInfo *&, const TCTTokenObjectHandle &, TRequestStatus &) |
pure virtual void | IsApplicable(const CCTCertInfo &, TUid, TBool &, TRequestStatus &) |
pure virtual void | List(RMPointerArray< CCTCertInfo > &, const CCertAttributeFilter &, TRequestStatus &) |
pure virtual void | Retrieve(const CCTCertInfo &, TDes8 &, TRequestStatus &) |
pure virtual void | Trusted(const CCTCertInfo &, TBool &, TRequestStatus &) |
Detailed Description
Defines the interface for a read-only certificate store.
This documentation describes the security policy that must be enforced by implementations of the interface.
Member Function Documentation
Applications ( const CCTCertInfo &, RArray< TUid > &, TRequestStatus & )
Querying the applications of a certificate. Get the list of the applications associcated with certificate.
Applications are represented by UIDs. Examples would be Software Install, TLS, WTLS, WMLScript, SignText, etc..
Parameter | Description | aCertInfo | The certificate to return applications for. |
aAplications | An array to save the applications in. |
aStatus | The request status object; contains the result of the Applications() request when complete. Set to KErrCancel if any outstanding request is cancelled. |
CancelApplications ( )
void | CancelApplications | ( | ) | [pure virtual] |
CancelGetCert ( )
void | CancelGetCert | ( | ) | [pure virtual] |
CancelIsApplicable ( )
void | CancelIsApplicable | ( | ) | [pure virtual] |
CancelList ( )
void | CancelList | ( | ) | [pure virtual] |
Cancels an ongoing List() operation.
CancelRetrieve ( )
void | CancelRetrieve | ( | ) | [pure virtual] |
CancelTrusted ( )
void | CancelTrusted | ( | ) | [pure virtual] |
GetCert ( CCTCertInfo *&, const TCTTokenObjectHandle &, TRequestStatus & )
Getting a certificate given a handle. Get a certificate given its handle.
Parameter | Description | aCertInfo | The returned certificate. |
aHandle | The handle of the certificate to return. |
aStatus | The request status object; contains the result of the GetCert() request when complete. Set to KErrCancel if any outstanding request is cancelled. |
IsApplicable ( const CCTCertInfo &, TUid, TBool &, TRequestStatus & )
Tests if a certificate is applicable to a particular application.
Parameter | Description | aCertInfo | The certificate in question. |
aApplication | The application. |
aIsApplicable | Set to ETrue or EFalse by the function to return the result. |
aStatus | The request status object; contains the result of the IsApplicable() request when complete. Set to KErrCancel if any outstanding request is cancelled. |
List ( RMPointerArray< CCTCertInfo > &, const CCertAttributeFilter &, TRequestStatus & )
Listing Certificates Get a list of all certificates that satisfy the supplied filter.
This is an async function; all errors are reported by completing aStatus with the error value, and it can be cancelled with CancelList().
Parameter | Description | aCerts | An array into which the returned certificates are placed. |
aFilter | A filter to select which certificates should be included. |
aStatus | A request status that will be completed when the operation completes. |
Retrieve ( const CCTCertInfo &, TDes8 &, TRequestStatus & )
Retrieving the actual certificate Retrieves the actual data of the certificate.
-
capability
- ReadUserData This requires the ReadUserData capability when applied to user certificates, as these may contain sensitive user data.
-
leave
- KErrPermissionDenied If called for a user certificate when the caller doesn't have the ReadUserData capability.
Parameter | Description | aCertInfo | The certificate to retrieve. |
aEncodedCert | A buffer to put the certificate in. It must be big enough; the size is stored in aCertInfo. |
aStatus | The request status object; contains the result of the Retrieve()request when complete. Set to KErrCancel if any outstanding request is cancelled. |
Trusted ( const CCTCertInfo &, TBool &, TRequestStatus & )
Trust querying Tests whether a certificate is trusted.
Trust is only meaningful for CA certificates where it means that the certificate can be used as a trust root for the purposes of certificate validation.
Parameter | Description | aCertInfo | The certificate we are interested in. |
aTrusted | Used to return the trust status. |
aStatus | The request status object; contains the result of the Trusted() request when complete. Set to KErrCancel if any outstanding request is cancelled. |