|
1 /* |
|
2 * Copyright (c) 2002-2005 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 IDWSF_AUTHENTICATION_SERVICE_CLIENT_H |
|
26 #define IDWSF_AUTHENTICATION_SERVICE_CLIENT_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <e32base.h> |
|
30 #include <badesca.h> |
|
31 #include <flogger.h> |
|
32 |
|
33 #include "idwsfdiscoveryserviceclient.h" |
|
34 #include "sensecuritymechanism.h" |
|
35 #include "midwsfsessionvalidator.h" |
|
36 |
|
37 // FORWARD DECLARATIONS |
|
38 class MIdWsfSessionValidator; |
|
39 |
|
40 // CLASS DECLARATION |
|
41 class CIdWsfAuthenticationServiceClient : public CIdWsfDiscoveryServiceClient |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 static CIdWsfAuthenticationServiceClient* NewL( CSIF& aSIF);//, |
|
46 //RFileLogger& aLogger); |
|
47 |
|
48 static CIdWsfAuthenticationServiceClient* NewLC(CSIF& aSIF);//, |
|
49 //RFileLogger& aLogger); |
|
50 |
|
51 ~CIdWsfAuthenticationServiceClient(); |
|
52 |
|
53 // New functions |
|
54 |
|
55 virtual TInt ValidateL(CIdWsfServiceSession &aSession, |
|
56 MSenRemoteServiceConsumer& aRemoteConsumer); |
|
57 |
|
58 virtual TInt ValidateL(CIdWsfServiceSession &aSession, const TDesC8& aAuthContext, |
|
59 MSenRemoteServiceConsumer& aRemoteConsumer); |
|
60 |
|
61 void SetStatusL(const TInt aStatus); |
|
62 void SetAccount(CSenIdentityProvider* aIdentityProvicer); |
|
63 |
|
64 virtual TBool HasSuperClass( TDescriptionClassType aType ); |
|
65 |
|
66 virtual void SetDataTrafficDetails( TSenDataTrafficDetails& aDetails) ; |
|
67 protected: |
|
68 |
|
69 /** |
|
70 * C++ default constructor. |
|
71 */ |
|
72 CIdWsfAuthenticationServiceClient( CSIF& aSIF, |
|
73 TDescriptionClassType aType);//, |
|
74 //RFileLogger& aLogger); |
|
75 /** |
|
76 * By default Symbian 2nd phase constructor is private. |
|
77 */ |
|
78 void BaseConstructL(); |
|
79 |
|
80 private: // New functions |
|
81 |
|
82 TInt ParseResponseL(TDesC8& aResponse, HBufC8*& aParsedMessage); |
|
83 |
|
84 private: // Data |
|
85 CSenSecurityMechanism* iAuthenticator; |
|
86 CIdWsfServiceSession* iDsSession; // Not owned |
|
87 CSenIdentityProvider* ipAccount; // Not owned |
|
88 TInt iAttempts; |
|
89 TInt iMaxAttempts; |
|
90 TSenDataTrafficDetails iAuthDetails; |
|
91 }; |
|
92 |
|
93 #endif // IDWSF_AUTHENTICATION_SERVICE_CLIENT_H |
|
94 |
|
95 // End of File |