ACE_INet  6.1.0
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
ACE::HTTP::BasicAuthentication Class Reference

#include <HTTP_BasicAuthentication.h>

Collaboration diagram for ACE::HTTP::BasicAuthentication:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BasicAuthentication ()
 Constructor.
 BasicAuthentication (const ACE_CString &user, const ACE_CString &passwd)
 Constructor. Sets user id and password.
 BasicAuthentication (const Request &request)
 Constructor. Decodes cedentials from request (if any).
virtual ~BasicAuthentication ()
 Destructor.
void user (const ACE_CString &user)
 Set user id.
const ACE_CStringuser () const
 Get user id.
void password (const ACE_CString &passwd)
 Set password.
const ACE_CStringpassword () const
 Get password.
void set_credentials (Request &request) const
 Add authentication header with encoded credentials to request.

Static Public Attributes

static const char * SCHEME = "Basic"

Private Member Functions

 BasicAuthentication (const BasicAuthentication &)
BasicAuthenticationoperator= (BasicAuthentication &)

Private Attributes

ACE_CString user_
ACE_CString passwd_

Constructor & Destructor Documentation

ACE::HTTP::BasicAuthentication::BasicAuthentication ( )

Constructor.

ACE::HTTP::BasicAuthentication::BasicAuthentication ( const ACE_CString user,
const ACE_CString passwd 
)

Constructor. Sets user id and password.

ACE::HTTP::BasicAuthentication::BasicAuthentication ( const Request request)

Constructor. Decodes cedentials from request (if any).

ACE::HTTP::BasicAuthentication::~BasicAuthentication ( ) [virtual]

Destructor.

ACE::HTTP::BasicAuthentication::BasicAuthentication ( const BasicAuthentication ) [private]

Member Function Documentation

BasicAuthentication& ACE::HTTP::BasicAuthentication::operator= ( BasicAuthentication ) [private]
void ACE::HTTP::BasicAuthentication::password ( const ACE_CString passwd) [inline]

Set password.

const ACE_CString & ACE::HTTP::BasicAuthentication::password ( ) const [inline]

Get password.

void ACE::HTTP::BasicAuthentication::set_credentials ( Request request) const

Add authentication header with encoded credentials to request.

void ACE::HTTP::BasicAuthentication::user ( const ACE_CString user) [inline]

Set user id.

const ACE_CString & ACE::HTTP::BasicAuthentication::user ( ) const [inline]

Get user id.


Member Data Documentation

const char * ACE::HTTP::BasicAuthentication::SCHEME = "Basic" [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines