|
1 /* |
|
2 * Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef WSSTAR_SECURITY_HANDLER_H |
|
26 #define WSSTAR_SECURITY_HANDLER_H |
|
27 |
|
28 #include <e32std.h> |
|
29 |
|
30 #include "SenDomFragmentBase.h" |
|
31 #include "senmessagehandler.h" |
|
32 #include "SenElement.h" |
|
33 |
|
34 |
|
35 class RFileLogger; |
|
36 |
|
37 |
|
38 /** |
|
39 * Class: |
|
40 * |
|
41 * Description: An implementation of the CWSStarHandler definition. This is concrete |
|
42 * class, instance of which ECOM framework gives to ECOM clients. |
|
43 * This handler sign elemetns in Envelope according to policy which is delivered. |
|
44 */ |
|
45 |
|
46 class CWSStarSecurityHandler : public CSenMessageHandler |
|
47 { |
|
48 |
|
49 typedef RArray<TXmlEngElement> RArrayElements; |
|
50 |
|
51 public: |
|
52 static CWSStarSecurityHandler* NewL(MSenHandlerContext* aHandlerCtx); |
|
53 virtual TInt InvokeL(MSenMessageContext& aCtx); |
|
54 virtual TInt InitL(MSenHandlerContext& aCtx); |
|
55 ~CWSStarSecurityHandler(); |
|
56 |
|
57 virtual SenHandler::THandlerDirection Direction() const; |
|
58 virtual SenHandler::THandlerPhase Phase(); |
|
59 |
|
60 private: |
|
61 CSenDomFragmentBase* GetElementsToSignL(MSenMessageContext& aCtx, |
|
62 RArrayElements* aElements); |
|
63 void AttachElementL(MSenMessageContext& aCtx, TXmlEngElement& aSignature); |
|
64 |
|
65 private: |
|
66 /** |
|
67 * Function: CWSStarSecurityHandler |
|
68 * |
|
69 * Discussion: Perform the first phase of two phase construction |
|
70 */ |
|
71 CWSStarSecurityHandler(MSenHandlerContext& aCtx); |
|
72 |
|
73 private: |
|
74 |
|
75 RFileLogger* Log() const; |
|
76 }; |
|
77 |
|
78 |
|
79 #endif // WSSTAR_SECURITY_HANDLER_H |
|
80 |