(file) Return to AuthenticationInfoRep.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 karl  1.7 //%2003////////////////////////////////////////////////////////////////////////
  2 kumpf 1.1 //
  3 karl  1.7 // Copyright (c) 2000, 2001, 2002  BMC Software, Hewlett-Packard Development
  4           // Company, L. P., IBM Corp., The Open Group, Tivoli Systems.
  5           // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.;
  6           // IBM Corp.; EMC Corporation, The Open Group.
  7 kumpf 1.1 //
  8 kumpf 1.3 // Permission is hereby granted, free of charge, to any person obtaining a copy
  9           // of this software and associated documentation files (the "Software"), to
 10           // deal in the Software without restriction, including without limitation the
 11           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 12           // sell copies of the Software, and to permit persons to whom the Software is
 13           // furnished to do so, subject to the following conditions:
 14           // 
 15           // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 16           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 17           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 18           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 19           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 20           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 21           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 22           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 23 kumpf 1.1 //
 24           //==============================================================================
 25           //
 26           // Author:  Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)
 27           //
 28 kumpf 1.6 // Modified By: Jair Santos, Hewlett-Packard Company (jair.santos@hp.com)
 29 a.arora 1.8 //              Amit K Arora, IBM (amita@in.ibm.com) for PEP-101
 30 h.sterling 1.10 //              Heather Sterling, IBM (hsterl@us.ibm.com)
 31 kumpf      1.1  //
 32                 //%/////////////////////////////////////////////////////////////////////////////
 33                 
 34                 #include <Pegasus/Common/Config.h>
 35                 #include <Pegasus/Common/Tracer.h>
 36                 #include "AuthenticationInfoRep.h"
 37 h.sterling 1.10 #include <Pegasus/Common/SSLContext.h>
 38 kumpf      1.1  
 39                 PEGASUS_USING_STD;
 40                 
 41                 PEGASUS_NAMESPACE_BEGIN
 42                 
 43 h.sterling 1.12 const String AuthenticationInfoRep::AUTH_TYPE_SSL = "SSL";
 44 kumpf      1.1  
 45                 AuthenticationInfoRep::AuthenticationInfoRep(Boolean flag)
 46                     : 
 47                     _authUser(String::EMPTY),
 48 kumpf      1.6      _authPassword(String::EMPTY),
 49 kumpf      1.2      _authChallenge(String::EMPTY),
 50 kumpf      1.1      _authSecret(String::EMPTY),
 51 kumpf      1.2      _privileged(false),
 52                     _authType(String::EMPTY),
 53 h.sterling 1.10     _authStatus(NEW_REQUEST),
 54 kumpf      1.11     _exportConnection(false)
 55 kumpf      1.1  { 
 56                     PEG_METHOD_ENTER(
 57                         TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep");
 58                 
 59                     PEG_METHOD_EXIT();
 60                 }
 61                 
 62                 
 63                 AuthenticationInfoRep::~AuthenticationInfoRep()
 64                 {
 65                     PEG_METHOD_ENTER(
 66                         TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep");
 67 gerarda    1.4  
 68 kumpf      1.1      PEG_METHOD_EXIT();
 69                 }
 70                 
 71                 void   AuthenticationInfoRep::setAuthStatus(AuthStatus status)
 72                 {
 73                     PEG_METHOD_ENTER(
 74                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthStatus");
 75                 
 76                     _authStatus = status;
 77                 
 78                     PEG_METHOD_EXIT();
 79                 }
 80                 
 81                 void   AuthenticationInfoRep::setAuthenticatedUser(const String& userName)
 82                 {
 83                     PEG_METHOD_ENTER(
 84                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedUser");
 85                 
 86                     _authUser = userName;
 87 kumpf      1.6  
 88                     PEG_METHOD_EXIT();
 89                 }
 90                 
 91                 void   AuthenticationInfoRep::setAuthenticatedPassword(const String& password)
 92                 {
 93                     PEG_METHOD_ENTER(
 94                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedPassword");
 95                 
 96                     _authPassword = password;
 97 kumpf      1.1  
 98                     PEG_METHOD_EXIT();
 99                 }
100                 
101                 void   AuthenticationInfoRep::setAuthChallenge(const String& challenge)
102                 {
103                     PEG_METHOD_ENTER(
104                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthChallenge");
105                 
106                     _authChallenge = challenge;
107                 
108                     PEG_METHOD_EXIT();
109                 }
110                 
111                 void   AuthenticationInfoRep::setAuthSecret(const String& secret)
112                 {
113                     PEG_METHOD_ENTER(
114                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthSecret");
115                 
116                     _authSecret = secret;
117                 
118 kumpf      1.1      PEG_METHOD_EXIT();
119                 }
120                 
121                 void   AuthenticationInfoRep::setPrivileged(Boolean privileged)
122                 {
123                     PEG_METHOD_ENTER(
124                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setPrivileged");
125                 
126                     _privileged = privileged;
127                 
128                     PEG_METHOD_EXIT();
129                 }
130                 
131                 void   AuthenticationInfoRep::setAuthType(const String& authType)
132                 {
133                     PEG_METHOD_ENTER(
134                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthType");
135                 
136                     _authType = authType;
137                 
138                     PEG_METHOD_EXIT();
139 kumpf      1.1  }
140 gerarda    1.5  
141                 #ifdef PEGASUS_KERBEROS_AUTHENTICATION
142                 void   AuthenticationInfoRep::setSecurityAssociation()
143                 {
144                     PEG_METHOD_ENTER(
145                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setSecurityAssociation");
146                 
147 a.arora    1.8      if ( !_securityAssoc.get() )
148 gerarda    1.5      {
149 a.arora    1.9          _securityAssoc.reset(new CIMKerberosSecurityAssociation);
150 gerarda    1.5      }
151                 
152                     PEG_METHOD_EXIT();
153                 }
154                 #endif
155                 
156 kumpf      1.11 void   AuthenticationInfoRep::setExportConnection(Boolean exportConnection)
157                 {
158                     PEG_METHOD_ENTER(TRC_AUTHENTICATION,
159                         "AuthenticationInfoRep::setExportConnection");
160                 
161                     _exportConnection = exportConnection;
162                 
163                     PEG_METHOD_EXIT();
164                 }
165                 
166 kumpf      1.1  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2