(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.25     : _connectionAuthenticated(false),
 47                       _wasRemotePrivilegedUserAccessChecked(false)
 48 kumpf      1.19 {
 49 kumpf      1.1      PEG_METHOD_ENTER(
 50                         TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep");
 51                 
 52                     PEG_METHOD_EXIT();
 53                 }
 54                 
 55                 AuthenticationInfoRep::~AuthenticationInfoRep()
 56                 {
 57                     PEG_METHOD_ENTER(
 58                         TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep");
 59 gerarda    1.4  
 60 kumpf      1.1      PEG_METHOD_EXIT();
 61                 }
 62                 
 63 kumpf      1.24 void AuthenticationInfoRep::setConnectionAuthenticated(
 64 sushma.fernandes 1.23     Boolean connectionAuthenticated)
 65 kumpf            1.1  {
 66 kumpf            1.24     PEG_METHOD_ENTER(TRC_AUTHENTICATION,
 67                               "AuthenticationInfoRep::setConnectionAuthenticated");
 68 kumpf            1.1  
 69 sushma.fernandes 1.23     _connectionAuthenticated = connectionAuthenticated;
 70 kumpf            1.1  
 71                           PEG_METHOD_EXIT();
 72                       }
 73                       
 74 kumpf            1.24 void AuthenticationInfoRep::setAuthenticatedUser(const String& userName)
 75 kumpf            1.1  {
 76                           PEG_METHOD_ENTER(
 77                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedUser");
 78                       
 79                           _authUser = userName;
 80 kumpf            1.6  
 81                           PEG_METHOD_EXIT();
 82                       }
 83                       
 84 kumpf            1.24 void AuthenticationInfoRep::setAuthenticatedPassword(const String& password)
 85 kumpf            1.6  {
 86                           PEG_METHOD_ENTER(
 87                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedPassword");
 88                       
 89                           _authPassword = password;
 90 kumpf            1.1  
 91                           PEG_METHOD_EXIT();
 92                       }
 93                       
 94 kumpf            1.26 void AuthenticationInfoRep::setLocalAuthFilePath(const String& filePath)
 95                       {
 96                           PEG_METHOD_ENTER(
 97                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setLocalAuthFilePath");
 98                       
 99                           _localAuthFilePath = filePath;
100                       
101                           PEG_METHOD_EXIT();
102                       }
103                       
104 kumpf            1.24 void AuthenticationInfoRep::setLocalAuthSecret(const String& secret)
105 kumpf            1.1  {
106                           PEG_METHOD_ENTER(
107 sushma.fernandes 1.22         TRC_AUTHENTICATION, "AuthenticationInfoRep::setLocalAuthSecret");
108 kumpf            1.1  
109 sushma.fernandes 1.22     _localAuthSecret = secret;
110 kumpf            1.1  
111                           PEG_METHOD_EXIT();
112                       }
113                       
114 kumpf            1.24 void AuthenticationInfoRep::setAuthType(const String& authType)
115 kumpf            1.1  {
116                           PEG_METHOD_ENTER(
117                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthType");
118                       
119                           _authType = authType;
120                       
121                           PEG_METHOD_EXIT();
122                       }
123 gerarda          1.5  
124                       #ifdef PEGASUS_KERBEROS_AUTHENTICATION
125 kumpf            1.24 void AuthenticationInfoRep::setSecurityAssociation()
126 gerarda          1.5  {
127                           PEG_METHOD_ENTER(
128                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setSecurityAssociation");
129                       
130 a.arora          1.8      if ( !_securityAssoc.get() )
131 gerarda          1.5      {
132 a.arora          1.9          _securityAssoc.reset(new CIMKerberosSecurityAssociation);
133 gerarda          1.5      }
134                       
135                           PEG_METHOD_EXIT();
136                       }
137                       #endif
138                       
139 kumpf            1.19 void AuthenticationInfoRep::setClientCertificateChain(
140                           Array<SSLCertificateInfo*> clientCertificate)
141 h.sterling       1.14 {
142                           PEG_METHOD_ENTER(TRC_AUTHENTICATION,
143 h.sterling       1.16         "AuthenticationInfoRep::setClientCertificateChain");
144 h.sterling       1.14 
145                           _clientCertificate = clientCertificate;
146                       
147                           PEG_METHOD_EXIT();
148                       }
149                       
150 kumpf            1.1  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2