|
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 SEN_IDWSF_PLAIN_SASL_MECHANISM_H |
|
26 #define SEN_IDWSF_PLAIN_SASL_MECHANISM_H |
|
27 |
|
28 // INCLUDES |
|
29 #include "SenSecurityMechanism.h" |
|
30 |
|
31 // FORWARD DECLARATIONS |
|
32 class MSenCoreServiceManager; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 class CSenIdWsfPlainSaslMechanism : public CSenSecurityMechanism |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 static CSenIdWsfPlainSaslMechanism* NewL( |
|
40 MSenCoreServiceManager& aServiceManager); |
|
41 static CSenIdWsfPlainSaslMechanism* NewLC( |
|
42 MSenCoreServiceManager& aServiceManager); |
|
43 virtual ~CSenIdWsfPlainSaslMechanism(); |
|
44 |
|
45 // Functions from base classes |
|
46 |
|
47 // From CSaslMechanism |
|
48 virtual void SetIdentity( CSenIdentityProvider* aIdentityProvider, |
|
49 MSenIdentityManager* aIdentityManager); |
|
50 |
|
51 virtual TBool IsPasswordFromUser(); |
|
52 virtual void ClearPasswordL(); |
|
53 virtual TInt MaxAttempts(); |
|
54 |
|
55 // From CSenSecurityMechanism |
|
56 virtual const TDesC8& Name(); |
|
57 virtual TInt HandleResponseL(MSenSaslMessage& aResponse, |
|
58 MSenSaslMessage& aNewRequest); |
|
59 |
|
60 protected: |
|
61 |
|
62 /** |
|
63 * C++ default constructor. |
|
64 */ |
|
65 CSenIdWsfPlainSaslMechanism(MSenCoreServiceManager& aServiceManager); |
|
66 |
|
67 private: // New functions |
|
68 |
|
69 /** |
|
70 * Leaving version of the method |
|
71 */ |
|
72 void SetIdentityL( CSenIdentityProvider* aIdentityProvider, |
|
73 MSenIdentityManager* aIdentityManager); |
|
74 |
|
75 protected: // Data |
|
76 HBufC8* ipPassword; |
|
77 }; |
|
78 |
|
79 #endif // IDWSF_PLAIN_SASL_MECHANISM_H |
|
80 |
|
81 // End of File |