(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            // Author:  Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)
 33            //
 34 kumpf 1.6  // Modified By: Jair Santos, Hewlett-Packard Company (jair.santos@hp.com)
 35 a.arora 1.8  //              Amit K Arora, IBM (amita@in.ibm.com) for PEP-101
 36 h.sterling 1.10 //              Heather Sterling, IBM (hsterl@us.ibm.com)
 37 kumpf      1.1  //
 38                 //%/////////////////////////////////////////////////////////////////////////////
 39                 
 40                 #include <Pegasus/Common/Config.h>
 41                 #include <Pegasus/Common/Tracer.h>
 42                 #include "AuthenticationInfoRep.h"
 43 h.sterling 1.10 #include <Pegasus/Common/SSLContext.h>
 44 kumpf      1.1  
 45                 PEGASUS_USING_STD;
 46                 
 47                 PEGASUS_NAMESPACE_BEGIN
 48                 
 49 h.sterling 1.12 const String AuthenticationInfoRep::AUTH_TYPE_SSL = "SSL";
 50 kumpf      1.1  
 51                 AuthenticationInfoRep::AuthenticationInfoRep(Boolean flag)
 52                     : 
 53                     _authUser(String::EMPTY),
 54 kumpf      1.6      _authPassword(String::EMPTY),
 55 kumpf      1.2      _authChallenge(String::EMPTY),
 56 kumpf      1.1      _authSecret(String::EMPTY),
 57 kumpf      1.2      _privileged(false),
 58                     _authType(String::EMPTY),
 59 h.sterling 1.10     _authStatus(NEW_REQUEST),
 60 kumpf      1.11     _exportConnection(false)
 61 kumpf      1.1  { 
 62                     PEG_METHOD_ENTER(
 63                         TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep");
 64                 
 65                     PEG_METHOD_EXIT();
 66                 }
 67                 
 68                 
 69                 AuthenticationInfoRep::~AuthenticationInfoRep()
 70                 {
 71                     PEG_METHOD_ENTER(
 72                         TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep");
 73 gerarda    1.4  
 74 kumpf      1.1      PEG_METHOD_EXIT();
 75                 }
 76                 
 77                 void   AuthenticationInfoRep::setAuthStatus(AuthStatus status)
 78                 {
 79                     PEG_METHOD_ENTER(
 80                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthStatus");
 81                 
 82                     _authStatus = status;
 83                 
 84                     PEG_METHOD_EXIT();
 85                 }
 86                 
 87                 void   AuthenticationInfoRep::setAuthenticatedUser(const String& userName)
 88                 {
 89                     PEG_METHOD_ENTER(
 90                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedUser");
 91                 
 92                     _authUser = userName;
 93 kumpf      1.6  
 94                     PEG_METHOD_EXIT();
 95                 }
 96                 
 97                 void   AuthenticationInfoRep::setAuthenticatedPassword(const String& password)
 98                 {
 99                     PEG_METHOD_ENTER(
100                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedPassword");
101                 
102                     _authPassword = password;
103 kumpf      1.1  
104                     PEG_METHOD_EXIT();
105                 }
106                 
107                 void   AuthenticationInfoRep::setAuthChallenge(const String& challenge)
108                 {
109                     PEG_METHOD_ENTER(
110                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthChallenge");
111                 
112                     _authChallenge = challenge;
113                 
114                     PEG_METHOD_EXIT();
115                 }
116                 
117                 void   AuthenticationInfoRep::setAuthSecret(const String& secret)
118                 {
119                     PEG_METHOD_ENTER(
120                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthSecret");
121                 
122                     _authSecret = secret;
123                 
124 kumpf      1.1      PEG_METHOD_EXIT();
125                 }
126                 
127                 void   AuthenticationInfoRep::setPrivileged(Boolean privileged)
128                 {
129                     PEG_METHOD_ENTER(
130                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setPrivileged");
131                 
132                     _privileged = privileged;
133                 
134                     PEG_METHOD_EXIT();
135                 }
136                 
137                 void   AuthenticationInfoRep::setAuthType(const String& authType)
138                 {
139                     PEG_METHOD_ENTER(
140                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthType");
141                 
142                     _authType = authType;
143                 
144                     PEG_METHOD_EXIT();
145 kumpf      1.1  }
146 gerarda    1.5  
147                 #ifdef PEGASUS_KERBEROS_AUTHENTICATION
148                 void   AuthenticationInfoRep::setSecurityAssociation()
149                 {
150                     PEG_METHOD_ENTER(
151                         TRC_AUTHENTICATION, "AuthenticationInfoRep::setSecurityAssociation");
152                 
153 a.arora    1.8      if ( !_securityAssoc.get() )
154 gerarda    1.5      {
155 a.arora    1.9          _securityAssoc.reset(new CIMKerberosSecurityAssociation);
156 gerarda    1.5      }
157                 
158                     PEG_METHOD_EXIT();
159                 }
160                 #endif
161                 
162 kumpf      1.11 void   AuthenticationInfoRep::setExportConnection(Boolean exportConnection)
163                 {
164                     PEG_METHOD_ENTER(TRC_AUTHENTICATION,
165                         "AuthenticationInfoRep::setExportConnection");
166                 
167                     _exportConnection = exportConnection;
168                 
169                     PEG_METHOD_EXIT();
170                 }
171                 
172 h.sterling 1.14 //PEP187
173 h.sterling 1.16 void AuthenticationInfoRep::setClientCertificateChain(Array<SSLCertificateInfo*> clientCertificate)
174 h.sterling 1.14 {
175                     PEG_METHOD_ENTER(TRC_AUTHENTICATION,
176 h.sterling 1.16         "AuthenticationInfoRep::setClientCertificateChain");
177 h.sterling 1.14 
178                     _clientCertificate = clientCertificate;
179                 
180                     PEG_METHOD_EXIT();
181                 }
182                 
183                 
184 kumpf      1.1  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2