class MProvdSecurityChecker |
Security checker class passed down to providers which is used to perform security checks on the client of the provider. The provider calls the CheckPolicy(...) method with a suitable TSecurityPolicy class and a diagnostic string as arguments.
_LIT_SECURITY_POLICY_C1(myPolicy1, ECapabilityNetworkServices); ... TInt CMyProvider::SecurityCheck(MProvdSecurityChecker *aChecker) { ... if (aChecker->CheckPolicy(myPolicy1, "CMyProvider main") == KErrNone) { // client has NetworkServices capability } ... }
Public Member Functions | |
---|---|
TInt | CheckPolicy (const TSecurityPolicy &, const char *) |
TInt | CheckPolicy | ( | const TSecurityPolicy & | aPolicy, |
const char * | aDiagnostic | |||
) | [pure virtual] |
Check the security policy of a client process.
Called from a socket or resolver provider to check whether the client process conforms to a security policy.
const TSecurityPolicy & aPolicy | A TSecurityPolicy class instance containing the security information to be checked against the client. |
const char * aDiagnostic | A diagnostic string used when logging system-wide security failures, else 0. |
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.