|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Purpose : Defines all the plug-in classes contained within the HttpSecurity |
|
15 // plug-in DLL. |
|
16 // The HTTP Security plug-in provides an implementation of security |
|
17 // policy for use by HTTP when configuring WTLS in the WAP stack. |
|
18 // // DISCLAIMER - THE IMPLEMENTATION FILE FOR THIS CLASS CONTAINS DUMMY // |
|
19 // // POLICIES FOR TESTING PURPOSES ONLY. IT SHOULD NOT FORM PART // |
|
20 // // OF FINAL DELIVERABLE SOFTWARE. IN REALITY, DELIVERABLE // |
|
21 // // SOFTWARE SHOULD REFLECT ACTUAL LICENSEE OR NETWORK PROVIDER // |
|
22 // // SECURITY POLICY. // |
|
23 // |
|
24 // |
|
25 |
|
26 #ifndef __CGTPUSHSECURITYPOLICY_H__ |
|
27 #define __CGTPUSHSECURITYPOLICY_H__ |
|
28 |
|
29 // System includes |
|
30 #include <e32base.h> |
|
31 |
|
32 // Local includes |
|
33 #include "CPushSecurityPolicy.h" |
|
34 |
|
35 // PushSecurity Plug-in data type handled |
|
36 _LIT(KWapPushSecurityData,"WTLS/Security Policy"); |
|
37 |
|
38 /** |
|
39 * Class definition for CWapPushSecurity |
|
40 */ |
|
41 //##ModelId=3B66B89E0137 |
|
42 class CGTPushSecurityPolicy : public CPushSecurityPolicy |
|
43 /** |
|
44 @internalComponent |
|
45 @released |
|
46 */ |
|
47 { |
|
48 public: // Methods |
|
49 |
|
50 //##ModelId=3B66B89E01A7 |
|
51 static CGTPushSecurityPolicy* NewL(); |
|
52 |
|
53 //##ModelId=3B66B89E01A6 |
|
54 virtual ~CGTPushSecurityPolicy(); |
|
55 |
|
56 private: // Methods inherited from CPushSecurityPolicy |
|
57 |
|
58 //##ModelId=3B66B89E019F |
|
59 virtual TBool AnonymousAuthenticationAllowed(); |
|
60 |
|
61 //##ModelId=3B66B89E0196 |
|
62 virtual TBool GetKeyExchangeSuiteNormal( |
|
63 RWTLS::TKeyExchangeSuite& aSuite, |
|
64 RWTLS::TIdType& aIdType, |
|
65 TDes8& aKeyId |
|
66 ); |
|
67 |
|
68 //##ModelId=3B66B89E0192 |
|
69 virtual TBool GetKeyExchangeSuiteAnon( |
|
70 RWTLS::TKeyExchangeSuite& aSuite, |
|
71 RWTLS::TIdType& aIdType, |
|
72 TDes8& aKeyId |
|
73 ); |
|
74 |
|
75 //##ModelId=3B66B89E018A |
|
76 virtual TBool GetNumCipherSuites(TInt& aNumCipherSuites); |
|
77 |
|
78 //##ModelId=3B66B89E0188 |
|
79 virtual TBool GetCipherSuitesL(RWTLS::CipherSuiteArray& aCipherSuites); |
|
80 |
|
81 //##ModelId=3B66B89E0180 |
|
82 virtual TBool GetKeyRefreshRate(TUint8& aRate); |
|
83 |
|
84 //##ModelId=3B66B89E017E |
|
85 virtual TBool GetSequenceNumberMode(RWTLS::TSequenceNumberMode& aMode); |
|
86 |
|
87 //##ModelId=3B66B89E0175 |
|
88 virtual TBool GetRecordLengthUsage(TBool& aUseRecordLengthFlag); |
|
89 |
|
90 //##ModelId=3B66B89E0173 |
|
91 virtual TBool GetSharedSecretLC(HBufC8*& aSharedSecret); |
|
92 |
|
93 //##ModelId=3B66B89E016A |
|
94 virtual TCipherResponse GetNegotiatedCipherAction( |
|
95 RWTLS::TCipherSuite* aSuite, |
|
96 RWTLS::TSequenceNumberMode* aMode |
|
97 ); |
|
98 |
|
99 //##ModelId=3B66B89E0162 |
|
100 virtual TAny* Extend_CPushSecurityPolicy1(TAny* aArg); |
|
101 |
|
102 //##ModelId=3B66B89E0160 |
|
103 virtual TAny* Extend_CPushSecurityPolicy2(TAny* aArg); |
|
104 |
|
105 private: // Methods |
|
106 |
|
107 //##ModelId=3B66B89E015F |
|
108 CGTPushSecurityPolicy(); |
|
109 |
|
110 //##ModelId=3B66B89E0155 |
|
111 void ConstructL(); |
|
112 |
|
113 private: // Attributes |
|
114 |
|
115 /** Counter for the number of times that GetKeyExchangeSuiteXxx() has been called |
|
116 */ |
|
117 //##ModelId=3B66B89E014E |
|
118 TInt iKeyExchangeSuitesSet; |
|
119 |
|
120 }; |
|
121 |
|
122 #endif // __CGTPUSHSECURITYPOLICY_H__ |