MProvdSecurityChecker Class Reference

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.

CServProviderBase CResolverProvdBase
        _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 *)

Member Functions Documentation

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.

Parameters

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.