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

  1 kumpf 1.1 //%/////////////////////////////////////////////////////////////////////////////
  2           //
  3 kumpf 1.3 // Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM,
  4 kumpf 1.1 // The Open Group, Tivoli Systems
  5           //
  6 kumpf 1.3 // Permission is hereby granted, free of charge, to any person obtaining a copy
  7           // of this software and associated documentation files (the "Software"), to
  8           // deal in the Software without restriction, including without limitation the
  9           // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 10           // sell copies of the Software, and to permit persons to whom the Software is
 11           // furnished to do so, subject to the following conditions:
 12           // 
 13           // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 14           // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 15           // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 16           // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 17           // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 18           // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 19           // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 20           // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 21 kumpf 1.1 //
 22           //==============================================================================
 23           //
 24           // Author:  Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)
 25           //
 26           // Modified By:
 27           //
 28           //%/////////////////////////////////////////////////////////////////////////////
 29           
 30           #include <Pegasus/Common/Config.h>
 31           #include <Pegasus/Common/Tracer.h>
 32           #include "AuthenticationInfoRep.h"
 33           
 34           PEGASUS_USING_STD;
 35           
 36           PEGASUS_NAMESPACE_BEGIN
 37           
 38           
 39           AuthenticationInfoRep::AuthenticationInfoRep(Boolean flag)
 40               : 
 41               _authUser(String::EMPTY),
 42 kumpf 1.2     _authChallenge(String::EMPTY),
 43 kumpf 1.1     _authSecret(String::EMPTY),
 44 kumpf 1.2     _privileged(false),
 45               _authType(String::EMPTY),
 46               _authStatus(NEW_REQUEST)
 47 kumpf 1.1 { 
 48               PEG_METHOD_ENTER(
 49                   TRC_AUTHENTICATION, "AuthenticationInfoRep::AuthenticationInfoRep");
 50           
 51               PEG_METHOD_EXIT();
 52           }
 53           
 54           
 55           AuthenticationInfoRep::~AuthenticationInfoRep()
 56           {
 57               PEG_METHOD_ENTER(
 58                   TRC_AUTHENTICATION, "AuthenticationInfoRep::~AuthenticationInfoRep");
 59           
 60               PEG_METHOD_EXIT();
 61           }
 62           
 63           void   AuthenticationInfoRep::setAuthStatus(AuthStatus status)
 64           {
 65               PEG_METHOD_ENTER(
 66                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthStatus");
 67           
 68 kumpf 1.1     _authStatus = status;
 69           
 70               PEG_METHOD_EXIT();
 71           }
 72           
 73           void   AuthenticationInfoRep::setAuthenticatedUser(const String& userName)
 74           {
 75               PEG_METHOD_ENTER(
 76                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthenticatedUser");
 77           
 78               _authUser = userName;
 79           
 80               PEG_METHOD_EXIT();
 81           }
 82           
 83           void   AuthenticationInfoRep::setAuthChallenge(const String& challenge)
 84           {
 85               PEG_METHOD_ENTER(
 86                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthChallenge");
 87           
 88               _authChallenge = challenge;
 89 kumpf 1.1 
 90               PEG_METHOD_EXIT();
 91           }
 92           
 93           void   AuthenticationInfoRep::setAuthSecret(const String& secret)
 94           {
 95               PEG_METHOD_ENTER(
 96                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthSecret");
 97           
 98               _authSecret = secret;
 99           
100               PEG_METHOD_EXIT();
101           }
102           
103           void   AuthenticationInfoRep::setPrivileged(Boolean privileged)
104           {
105               PEG_METHOD_ENTER(
106                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setPrivileged");
107           
108               _privileged = privileged;
109           
110 kumpf 1.1     PEG_METHOD_EXIT();
111           }
112           
113           void   AuthenticationInfoRep::setAuthType(const String& authType)
114           {
115               PEG_METHOD_ENTER(
116                   TRC_AUTHENTICATION, "AuthenticationInfoRep::setAuthType");
117           
118               _authType = authType;
119           
120               PEG_METHOD_EXIT();
121           }
122           
123           PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2