(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                     : 
 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 sushma.fernandes 1.18     _authStatus(NEW_REQUEST)
 54 kumpf            1.1  { 
 55                           PEG_METHOD_ENTER(
 56                               TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep");
 57                       
 58                           PEG_METHOD_EXIT();
 59                       }
 60                       
 61                       
 62                       AuthenticationInfoRep::~AuthenticationInfoRep()
 63                       {
 64                           PEG_METHOD_ENTER(
 65                               TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep");
 66 gerarda          1.4  
 67 kumpf            1.1      PEG_METHOD_EXIT();
 68                       }
 69                       
 70                       void   AuthenticationInfoRep::setAuthStatus(AuthStatus status)
 71                       {
 72                           PEG_METHOD_ENTER(
 73                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthStatus");
 74                       
 75                           _authStatus = status;
 76                       
 77                           PEG_METHOD_EXIT();
 78                       }
 79                       
 80                       void   AuthenticationInfoRep::setAuthenticatedUser(const String& userName)
 81                       {
 82                           PEG_METHOD_ENTER(
 83                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedUser");
 84                       
 85                           _authUser = userName;
 86 kumpf            1.6  
 87                           PEG_METHOD_EXIT();
 88                       }
 89                       
 90                       void   AuthenticationInfoRep::setAuthenticatedPassword(const String& password)
 91                       {
 92                           PEG_METHOD_ENTER(
 93                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedPassword");
 94                       
 95                           _authPassword = password;
 96 kumpf            1.1  
 97                           PEG_METHOD_EXIT();
 98                       }
 99                       
100                       void   AuthenticationInfoRep::setAuthChallenge(const String& challenge)
101                       {
102                           PEG_METHOD_ENTER(
103                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthChallenge");
104                       
105                           _authChallenge = challenge;
106                       
107                           PEG_METHOD_EXIT();
108                       }
109                       
110                       void   AuthenticationInfoRep::setAuthSecret(const String& secret)
111                       {
112                           PEG_METHOD_ENTER(
113                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthSecret");
114                       
115                           _authSecret = secret;
116                       
117 kumpf            1.1      PEG_METHOD_EXIT();
118                       }
119                       
120                       void   AuthenticationInfoRep::setPrivileged(Boolean privileged)
121                       {
122                           PEG_METHOD_ENTER(
123                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setPrivileged");
124                       
125                           _privileged = privileged;
126                       
127                           PEG_METHOD_EXIT();
128                       }
129                       
130                       void   AuthenticationInfoRep::setAuthType(const String& authType)
131                       {
132                           PEG_METHOD_ENTER(
133                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthType");
134                       
135                           _authType = authType;
136                       
137                           PEG_METHOD_EXIT();
138 kumpf            1.1  }
139 gerarda          1.5  
140                       #ifdef PEGASUS_KERBEROS_AUTHENTICATION
141                       void   AuthenticationInfoRep::setSecurityAssociation()
142                       {
143                           PEG_METHOD_ENTER(
144                               TRC_AUTHENTICATION, "AuthenticationInfoRep::setSecurityAssociation");
145                       
146 a.arora          1.8      if ( !_securityAssoc.get() )
147 gerarda          1.5      {
148 a.arora          1.9          _securityAssoc.reset(new CIMKerberosSecurityAssociation);
149 gerarda          1.5      }
150                       
151                           PEG_METHOD_EXIT();
152                       }
153                       #endif
154                       
155 h.sterling       1.14 //PEP187
156 h.sterling       1.16 void AuthenticationInfoRep::setClientCertificateChain(Array<SSLCertificateInfo*> clientCertificate)
157 h.sterling       1.14 {
158                           PEG_METHOD_ENTER(TRC_AUTHENTICATION,
159 h.sterling       1.16         "AuthenticationInfoRep::setClientCertificateChain");
160 h.sterling       1.14 
161                           _clientCertificate = clientCertificate;
162                       
163                           PEG_METHOD_EXIT();
164                       }
165                       
166                       
167 kumpf            1.1  PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2