3 kumpf 1.3 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
|
6 kumpf 1.3 // Permission is hereby granted, free of charge, to any person obtaining a copy
7 // of this software and associated documentation files (the "Software"), to
8 // deal in the Software without restriction, including without limitation the
9 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 // sell copies of the Software, and to permit persons to whom the Software is
11 // furnished to do so, subject to the following conditions:
12 //
13 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
14 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
15 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
16 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
17 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21 kumpf 1.1 //
22 //==============================================================================
23 //
24 // Author: Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)
25 //
26 // Modified By:
27 //
28 //%/////////////////////////////////////////////////////////////////////////////
29
30 #include <Pegasus/Common/Config.h>
31 #include <Pegasus/Common/Tracer.h>
32 #include "AuthenticationInfoRep.h"
33
34 PEGASUS_USING_STD;
35
36 PEGASUS_NAMESPACE_BEGIN
37
38
39 AuthenticationInfoRep::AuthenticationInfoRep(Boolean flag)
40 :
41 _authUser(String::EMPTY),
|
47 kumpf 1.1 {
48 PEG_METHOD_ENTER(
49 TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep");
50
51 PEG_METHOD_EXIT();
52 }
53
54
55 AuthenticationInfoRep::~AuthenticationInfoRep()
56 {
57 PEG_METHOD_ENTER(
58 TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep");
59
60 PEG_METHOD_EXIT();
61 }
62
63 void AuthenticationInfoRep::setAuthStatus(AuthStatus status)
64 {
65 PEG_METHOD_ENTER(
66 TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthStatus");
67
68 kumpf 1.1 _authStatus = status;
69
70 PEG_METHOD_EXIT();
71 }
72
73 void AuthenticationInfoRep::setAuthenticatedUser(const String& userName)
74 {
75 PEG_METHOD_ENTER(
76 TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedUser");
77
78 _authUser = userName;
79
80 PEG_METHOD_EXIT();
81 }
82
83 void AuthenticationInfoRep::setAuthChallenge(const String& challenge)
84 {
85 PEG_METHOD_ENTER(
86 TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthChallenge");
87
88 _authChallenge = challenge;
89 kumpf 1.1
90 PEG_METHOD_EXIT();
91 }
92
93 void AuthenticationInfoRep::setAuthSecret(const String& secret)
94 {
95 PEG_METHOD_ENTER(
96 TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthSecret");
97
98 _authSecret = secret;
99
100 PEG_METHOD_EXIT();
101 }
102
103 void AuthenticationInfoRep::setPrivileged(Boolean privileged)
104 {
105 PEG_METHOD_ENTER(
106 TRC_AUTHENTICATION, "AuthenticationInfoRep::setPrivileged");
107
108 _privileged = privileged;
109
110 kumpf 1.1 PEG_METHOD_EXIT();
111 }
112
113 void AuthenticationInfoRep::setAuthType(const String& authType)
114 {
115 PEG_METHOD_ENTER(
116 TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthType");
117
118 _authType = authType;
119
120 PEG_METHOD_EXIT();
121 }
122
123 PEGASUS_NAMESPACE_END
|