| struct TStaticSecurityPolicy |
Structure for compile-time initialisation of a security policy.
This structure behaves in the same way as a TSecurityPolicy object but has the advantage that it may be initialised at compile time. E.g. the following line defines a security policy 'KSecurityPolictReadUserData' which checks ReadUserData capability.
_LIT_SECURITY_POLICY_C1(KSecurityPolictReadUserData,ECapabilityReadUserData)
static const TStaticSecurityPolicy MyPolicies[] =
{
_INIT_SECURITY_POLICY_C1(ECapabilityReadUserData),
_INIT_SECURITY_POLICY_PASS(),
_INIT_SECURITY_POLICY_S0(0x1234567)
}
This class should not be initialised directly, instead one of the following macros should be used:
_INIT_SECURITY_POLICY_PASS
_INIT_SECURITY_POLICY_FAIL
_INIT_SECURITY_POLICY_C1
_INIT_SECURITY_POLICY_C2
_INIT_SECURITY_POLICY_C3
_INIT_SECURITY_POLICY_C4
_INIT_SECURITY_POLICY_C5
_INIT_SECURITY_POLICY_C6
_INIT_SECURITY_POLICY_C7
_INIT_SECURITY_POLICY_S0
_INIT_SECURITY_POLICY_S1
_INIT_SECURITY_POLICY_S2
_INIT_SECURITY_POLICY_S3
_INIT_SECURITY_POLICY_V0
_INIT_SECURITY_POLICY_V1
_INIT_SECURITY_POLICY_V2
_INIT_SECURITY_POLICY_V3
_LIT_SECURITY_POLICY_PASS
_LIT_SECURITY_POLICY_FAIL
_LIT_SECURITY_POLICY_C1
_LIT_SECURITY_POLICY_C2
_LIT_SECURITY_POLICY_C3
_LIT_SECURITY_POLICY_C4
_LIT_SECURITY_POLICY_C5
_LIT_SECURITY_POLICY_C6
_LIT_SECURITY_POLICY_C7
_LIT_SECURITY_POLICY_S0
_LIT_SECURITY_POLICY_S1
_LIT_SECURITY_POLICY_S2
_LIT_SECURITY_POLICY_S3
_LIT_SECURITY_POLICY_V0
_LIT_SECURITY_POLICY_V1
_LIT_SECURITY_POLICY_V2
_LIT_SECURITY_POLICY_V3
| Public Member Functions | |
|---|---|
| TBool | CheckPolicy(RProcess, const char *) |
| TBool | CheckPolicy(RThread, const char *) |
| TBool | CheckPolicy(RMessagePtr2, const char *) |
| TBool | CheckPolicy(RMessagePtr2, TSecurityInfo &, const char *) |
| TBool | CheckPolicyCreator(const char *) |
| operator const TSecurityPolicy &() | |
| const TSecurityPolicy * | operator&() |
| const TSecurityPolicy & | operator()() |
| Public Attributes | |
|---|---|
| TUint32 | iA |
| TUint32 | iB |
| TBool | CheckPolicy | ( | RProcess | aProcess, |
| const char * | aDiagnostic = 0 | |||
| ) | const [inline] | |||
TSecurityPolicy::CheckPolicy(RProcess aProcess, const char* aDiagnostic)
| RProcess aProcess | |
| const char * aDiagnostic = 0 |
| TBool | CheckPolicy | ( | RThread | aThread, |
| const char * | aDiagnostic = 0 | |||
| ) | const [inline] | |||
TSecurityPolicy::CheckPolicy(RThread aThread, const char* aDiagnostic)
| RThread aThread | |
| const char * aDiagnostic = 0 |
| TBool | CheckPolicy | ( | RMessagePtr2 | aMsgPtr, |
| const char * | aDiagnostic = 0 | |||
| ) | const [inline] | |||
TSecurityPolicy::CheckPolicy(RMessagePtr2 aMsgPtr, const char* aDiagnostic)
| RMessagePtr2 aMsgPtr | |
| const char * aDiagnostic = 0 |
| TBool | CheckPolicy | ( | RMessagePtr2 | aMsgPtr, |
| TSecurityInfo & | aMissing, | |||
| const char * | aDiagnostic = 0 | |||
| ) | const [inline] | |||
TSecurityPolicy::CheckPolicy(RMessagePtr2 aMsgPtr, TSecurityInfo& aMissing, const char* aDiagnostic)
| RMessagePtr2 aMsgPtr | |
| TSecurityInfo & aMissing | |
| const char * aDiagnostic = 0 |
| TBool | CheckPolicyCreator | ( | const char * | aDiagnostic = 0 | ) | const [inline] |
TSecurityPolicy::CheckPolicyCreator(const char* aDiagnostic)
| const char * aDiagnostic = 0 |
| operator const TSecurityPolicy & | ( | ) | const [inline] |
'Reference of' operator which generates a TSecurityPolicy& A reference of type TSecurityPolicy which refers to this object
| const TSecurityPolicy * | operator& | ( | ) | const [inline] |
'Address of' operator which generates a TSecurityPolicy* A pointer of type TSecurityPolicy which refers to this object
| const TSecurityPolicy & | operator() | ( | ) | const [inline] |
A method to explicity generate a TSecurityPolicy reference. A reference of type TSecurityPolicy which refers to this object