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

  1 karl  1.17 //%2006////////////////////////////////////////////////////////////////////////
  2 kumpf 1.1  //
  3 karl  1.13 // 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 karl  1.7  // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.13 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.15 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.17 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 kumpf 1.1  //
 14 kumpf 1.3  // Permission is hereby granted, free of charge, to any person obtaining a copy
 15            // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18            // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20            // 
 21            // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22            // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24            // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27            // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29 kumpf 1.1  //
 30            //==============================================================================
 31            //
 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 kumpf      1.19     :
 47 kumpf      1.1      _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 sushma.fernandes 1.20.4.1     _connectionAuthenticated(false),
 54 marek            1.20         _wasRemotePrivilegedUserAccessChecked(false)
 55 kumpf            1.19     {
 56 kumpf            1.1          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 sushma.fernandes 1.20.4.1 void   AuthenticationInfoRep::setConnectionAuthenticated(
 72                               Boolean connectionAuthenticated)
 73 kumpf            1.1      {
 74                               PEG_METHOD_ENTER(
 75 sushma.fernandes 1.20.4.1         TRC_AUTHENTICATION, "AuthenticationInfoRep::setConnectionAuthenticated");
 76 kumpf            1.1      
 77 sushma.fernandes 1.20.4.1     _connectionAuthenticated = connectionAuthenticated;
 78 kumpf            1.1      
 79                               PEG_METHOD_EXIT();
 80                           }
 81                           
 82                           void   AuthenticationInfoRep::setAuthenticatedUser(const String& userName)
 83                           {
 84                               PEG_METHOD_ENTER(
 85                                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedUser");
 86                           
 87                               _authUser = userName;
 88 kumpf            1.6      
 89                               PEG_METHOD_EXIT();
 90                           }
 91                           
 92                           void   AuthenticationInfoRep::setAuthenticatedPassword(const String& password)
 93                           {
 94                               PEG_METHOD_ENTER(
 95                                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedPassword");
 96                           
 97                               _authPassword = password;
 98 kumpf            1.1      
 99                               PEG_METHOD_EXIT();
100                           }
101                           
102                           void   AuthenticationInfoRep::setAuthChallenge(const String& challenge)
103                           {
104                               PEG_METHOD_ENTER(
105                                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthChallenge");
106                           
107                               _authChallenge = challenge;
108                           
109                               PEG_METHOD_EXIT();
110                           }
111                           
112                           void   AuthenticationInfoRep::setAuthSecret(const String& secret)
113                           {
114                               PEG_METHOD_ENTER(
115                                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthSecret");
116                           
117                               _authSecret = secret;
118                           
119 kumpf            1.1          PEG_METHOD_EXIT();
120                           }
121                           
122                           void   AuthenticationInfoRep::setPrivileged(Boolean privileged)
123                           {
124                               PEG_METHOD_ENTER(
125                                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setPrivileged");
126                           
127                               _privileged = privileged;
128                           
129                               PEG_METHOD_EXIT();
130                           }
131                           
132                           void   AuthenticationInfoRep::setAuthType(const String& authType)
133                           {
134                               PEG_METHOD_ENTER(
135                                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthType");
136                           
137                               _authType = authType;
138                           
139                               PEG_METHOD_EXIT();
140 kumpf            1.1      }
141 gerarda          1.5      
142                           #ifdef PEGASUS_KERBEROS_AUTHENTICATION
143                           void   AuthenticationInfoRep::setSecurityAssociation()
144                           {
145                               PEG_METHOD_ENTER(
146                                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setSecurityAssociation");
147                           
148 a.arora          1.8          if ( !_securityAssoc.get() )
149 gerarda          1.5          {
150 a.arora          1.9              _securityAssoc.reset(new CIMKerberosSecurityAssociation);
151 gerarda          1.5          }
152                           
153                               PEG_METHOD_EXIT();
154                           }
155                           #endif
156                           
157 kumpf            1.19     void AuthenticationInfoRep::setClientCertificateChain(
158                               Array<SSLCertificateInfo*> clientCertificate)
159 h.sterling       1.14     {
160                               PEG_METHOD_ENTER(TRC_AUTHENTICATION,
161 h.sterling       1.16             "AuthenticationInfoRep::setClientCertificateChain");
162 h.sterling       1.14     
163                               _clientCertificate = clientCertificate;
164                           
165                               PEG_METHOD_EXIT();
166                           }
167                           
168                           
169 kumpf            1.1      PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2