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

File: [Pegasus] / pegasus / src / Pegasus / Common / Attic / AuthenticationInfo.cpp (download)
Revision: 1.4, Thu Mar 21 22:13:07 2002 UTC (22 years, 3 months ago) by kumpf
Branch: MAIN
CVS Tags: TASK-PEP362_RestfulService-merged_out_from_trunk, TASK-PEP348_SCMO-merged_out_from_trunk, TASK-PEP317_pullop-merged_out_from_trunk, TASK-PEP317_pullop-merged_in_to_trunk, TASK-PEP311_WSMan-root, TASK-PEP311_WSMan-branch, RELEASE_2_5_0-RC1, HPUX_TEST, HEAD
Changes since 1.3: +0 -0 lines
FILE REMOVED
HP-Nag: Implemented Server side Basic authentication handling code and cleaned up ATTN's in the authentication releated files. Implemented a new AuthenticationInfoRep class and modified the related files. Added more test cases to test the authentication classes.

//%/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM,
// The Open Group, Tivoli Systems
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies of substantial portions of this software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
//
//==============================================================================
//
// Author:  Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com)
//
// Modified By:
//
//%/////////////////////////////////////////////////////////////////////////////

#include "AuthenticationInfo.h"

PEGASUS_USING_STD;

PEGASUS_NAMESPACE_BEGIN


AuthenticationInfo::AuthenticationInfo()
    : 
    _authStatus(NEW_REQUEST), 
    _authUser(String::EMPTY),
    _authChallenge(String::EMPTY), 
    _authSecret(String::EMPTY),
    _privileged(false), 
    _authType(String::EMPTY)
{ 

}


AuthenticationInfo::~AuthenticationInfo()
{

}

//
// Set the authentication status of the request
//
void   AuthenticationInfo::setAuthStatus(AuthStatus status)
{
    _authStatus = status;
}

//
// Set the authenticated user name
//
void   AuthenticationInfo::setAuthenticatedUser(const String& userName)
{
    _authUser = userName;
}

//
// Set the authentication challenge
//
void   AuthenticationInfo::setAuthChallenge(const String& challenge)
{
    _authChallenge = challenge;
}

//
// Set the authentication secret
//
void   AuthenticationInfo::setAuthSecret(const String& secret)
{
    _authSecret = secret;
}

//
// Set the privileged flag
//
void   AuthenticationInfo::setPrivileged(Boolean privileged)
{
    _privileged = privileged;
}

//
// Set the authentication type of the request
//
void   AuthenticationInfo::setAuthType(const String& authType)
{
    _authType = authType;
}

PEGASUS_NAMESPACE_END

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2