BasicAuthentication Class Reference

#include <Pt/Http/Authenticator.h>

Basic HTTP authentication for clients.

Inherits Authentication.

Public Types

typedef std::map< std::string, CredentialCredentials
 Credentials for realms.

Public Member Functions

 BasicAuthentication ()
 Default Constructor.
virtual ~BasicAuthentication ()
 Destructor.
void preAuthenticate (const Credential &credential, Request &request)
 Writes basic credentials onto request before a challenge.
virtual bool authenticate (const Credentials &credentials, Request &request, const Reply &reply)
 Authenticates request from credentials in response to reply.
const std::string & name () const
 Returns the type name of the authentication.