(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 thilo.boehm 1.27 const String AuthenticationInfoRep::AUTH_TYPE_ZOS_LOCAL_DOMIAN_SOCKET = "LDS";
 45                  const String AuthenticationInfoRep::AUTH_TYPE_ZOS_ATTLS = "ATTLS";
 46 kumpf       1.1  
 47                  AuthenticationInfoRep::AuthenticationInfoRep(Boolean flag)
 48 kumpf       1.25     : _connectionAuthenticated(false),
 49                        _wasRemotePrivilegedUserAccessChecked(false)
 50 kumpf       1.19 {
 51 kumpf       1.1      PEG_METHOD_ENTER(
 52                          TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep");
 53                  
 54                      PEG_METHOD_EXIT();
 55                  }
 56                  
 57                  AuthenticationInfoRep::~AuthenticationInfoRep()
 58                  {
 59                      PEG_METHOD_ENTER(
 60                          TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep");
 61 gerarda     1.4  
 62 kumpf       1.1      PEG_METHOD_EXIT();
 63                  }
 64                  
 65 kumpf       1.24 void AuthenticationInfoRep::setConnectionAuthenticated(
 66 sushma.fernandes 1.23     Boolean connectionAuthenticated)
 67 kumpf            1.1  {
 68 kumpf            1.24     PEG_METHOD_ENTER(TRC_AUTHENTICATION,
 69                               "AuthenticationInfoRep::setConnectionAuthenticated");
 70 kumpf            1.1  
 71 sushma.fernandes 1.23     _connectionAuthenticated = connectionAuthenticated;
 72 kumpf            1.1  
 73                           PEG_METHOD_EXIT();
 74                       }
 75                       
 76 thilo.boehm      1.27 #ifdef PEGASUS_OS_ZOS
 77                       
 78                           // The connection user is for z/OS only.
 79                           // On z/OS Unix Local Domain Sockets and sockets
 80                           // protected by AT-TLS are able to get the user ID of
 81                           // the connected user.
 82                           // This information is needed for later authentication 
 83                           //  steps.
 84                       
 85                       void AuthenticationInfoRep::setConnectionUser(const String& userName)
 86                       {
 87                           PEG_METHOD_ENTER(
 88                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setConnectionUser()");
 89                       
 90                           _connectionUser = userName;
 91                       
 92                           PEG_METHOD_EXIT();
 93                       }
 94                       #endif
 95                       
 96 kumpf            1.24 void AuthenticationInfoRep::setAuthenticatedUser(const String& userName)
 97 kumpf            1.1  {
 98                           PEG_METHOD_ENTER(
 99                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedUser");
100                       
101                           _authUser = userName;
102 kumpf            1.6  
103                           PEG_METHOD_EXIT();
104                       }
105                       
106 kumpf            1.24 void AuthenticationInfoRep::setAuthenticatedPassword(const String& password)
107 kumpf            1.6  {
108                           PEG_METHOD_ENTER(
109                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedPassword");
110                       
111                           _authPassword = password;
112 kumpf            1.1  
113                           PEG_METHOD_EXIT();
114                       }
115                       
116 kumpf            1.26 void AuthenticationInfoRep::setLocalAuthFilePath(const String& filePath)
117                       {
118                           PEG_METHOD_ENTER(
119                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setLocalAuthFilePath");
120                       
121                           _localAuthFilePath = filePath;
122                       
123                           PEG_METHOD_EXIT();
124                       }
125                       
126 kumpf            1.24 void AuthenticationInfoRep::setLocalAuthSecret(const String& secret)
127 kumpf            1.1  {
128                           PEG_METHOD_ENTER(
129 sushma.fernandes 1.22         TRC_AUTHENTICATION, "AuthenticationInfoRep::setLocalAuthSecret");
130 kumpf            1.1  
131 sushma.fernandes 1.22     _localAuthSecret = secret;
132 kumpf            1.1  
133                           PEG_METHOD_EXIT();
134                       }
135                       
136 kumpf            1.24 void AuthenticationInfoRep::setAuthType(const String& authType)
137 kumpf            1.1  {
138                           PEG_METHOD_ENTER(
139                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthType");
140                       
141                           _authType = authType;
142                       
143                           PEG_METHOD_EXIT();
144                       }
145 gerarda          1.5  
146                       #ifdef PEGASUS_KERBEROS_AUTHENTICATION
147 kumpf            1.24 void AuthenticationInfoRep::setSecurityAssociation()
148 gerarda          1.5  {
149                           PEG_METHOD_ENTER(
150                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setSecurityAssociation");
151                       
152 a.arora          1.8      if ( !_securityAssoc.get() )
153 gerarda          1.5      {
154 a.arora          1.9          _securityAssoc.reset(new CIMKerberosSecurityAssociation);
155 gerarda          1.5      }
156                       
157                           PEG_METHOD_EXIT();
158                       }
159                       #endif
160                       
161 kumpf            1.19 void AuthenticationInfoRep::setClientCertificateChain(
162                           Array<SSLCertificateInfo*> clientCertificate)
163 h.sterling       1.14 {
164                           PEG_METHOD_ENTER(TRC_AUTHENTICATION,
165 h.sterling       1.16         "AuthenticationInfoRep::setClientCertificateChain");
166 h.sterling       1.14 
167                           _clientCertificate = clientCertificate;
168                       
169                           PEG_METHOD_EXIT();
170                       }
171                       
172 kumpf            1.1  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2