equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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: Implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "CTcSIPContext.h" |
|
19 #include "SIPConstants.h" |
|
20 #include "CTcSIPHttpDigestContainer.h" |
|
21 #include "TCmdRemoveCredentials.h" |
|
22 |
|
23 /** |
|
24 * INPUT: |
|
25 * Headers: - |
|
26 * Parameters: DigestRealm* |
|
27 * IDs: - |
|
28 * |
|
29 * OUTPUT: |
|
30 * Parameters: - |
|
31 * IDs: - |
|
32 */ |
|
33 void TCmdRemoveCredentials::ExecuteL() |
|
34 { |
|
35 // Realm is optional |
|
36 TPtrC8 realm = ExtractTextL( KParamDigestRealm, EFalse ); |
|
37 |
|
38 if( realm != KNullDesC8 ) |
|
39 { |
|
40 iContext.DigestContainerL().HttpDigest().RemoveCredentials( realm ); |
|
41 } |
|
42 else |
|
43 { |
|
44 iContext.DigestContainerL().HttpDigest().RemoveCredentials(); |
|
45 } |
|
46 } |
|
47 |
|
48 TBool TCmdRemoveCredentials::Match( const TTcIdentifier& aId ) |
|
49 { |
|
50 return TTcSIPCommandBase::Match( aId, _L8("RemoveCredentials") ); |
|
51 } |
|
52 |
|
53 TTcCommandBase* TCmdRemoveCredentials::CreateL( MTcTestContext& aContext ) |
|
54 { |
|
55 return new( ELeave ) TCmdRemoveCredentials( aContext ); |
|
56 } |