|
1 // Copyright (c) 2006-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 // Name : CSIPSecSIMCredentialsObserver.cpp |
|
15 // Part of : SIPSec |
|
16 // Version : SIP/5.0 |
|
17 // |
|
18 |
|
19 |
|
20 |
|
21 #include "CSIPSecSIMCredentialsObserver.h" |
|
22 |
|
23 |
|
24 // ============================ MEMBER FUNCTIONS =============================== |
|
25 |
|
26 // ---------------------------------------------------------------------------- |
|
27 // CSIPSecSIMCredentialsObserver::CSIPSecSIMCredentialsObserver |
|
28 // ---------------------------------------------------------------------------- |
|
29 // |
|
30 CSIPSecSIMCredentialsObserver::CSIPSecSIMCredentialsObserver( |
|
31 MSIPSecSecurityMechanismObserver& aObserver ) : |
|
32 CSIPSecDigestObserver( aObserver ), |
|
33 iAuthenticated( EFalse ) |
|
34 { |
|
35 } |
|
36 |
|
37 // ---------------------------------------------------------------------------- |
|
38 // CSIPSecSIMCredentialsObserver::~CSIPSecSIMCredentialsObserver |
|
39 // ---------------------------------------------------------------------------- |
|
40 // |
|
41 CSIPSecSIMCredentialsObserver::~CSIPSecSIMCredentialsObserver() |
|
42 { |
|
43 } |
|
44 |
|
45 // ---------------------------------------------------------------------------- |
|
46 // CSIPSecSIMCredentialsObserver::OperationCompleted |
|
47 // ---------------------------------------------------------------------------- |
|
48 // |
|
49 void CSIPSecSIMCredentialsObserver::OperationCompleted( TStatus aReason, |
|
50 TBool aAuthenticated ) |
|
51 { |
|
52 if ( aAuthenticated ) |
|
53 { |
|
54 iAuthenticated = ETrue; |
|
55 } |
|
56 |
|
57 CSIPSecDigestObserver::OperationCompleted( aReason, aAuthenticated ); |
|
58 } |
|
59 |
|
60 // ---------------------------------------------------------------------------- |
|
61 // CSIPSecSIMCredentialsObserver::DoCompleted |
|
62 // ---------------------------------------------------------------------------- |
|
63 // |
|
64 void CSIPSecSIMCredentialsObserver::DoCompleted() |
|
65 { |
|
66 if ( iStatus != ECancelled ) |
|
67 { |
|
68 iObserver->CacheUpdated( iStatus != EFailure, iAuthenticated ); |
|
69 } |
|
70 } |