BasicAuthentication Class Reference

#include <Pt/Http/Authenticator.h>

Basic HTTP authentication for clients.

Inherits Authentication.

Public Types

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

Public Member Functions

 BasicAuthentication ()
 Default Constructor.
virtual ~BasicAuthentication ()
virtual bool authenticate (const Credentials &credentials, Request &request, const Reply &reply)
 Authenticate a request in response to a reply. More...
const std::string & name () const
 Returns the type name of the authentication.

Member Function Documentation

virtual bool authenticate ( const Credentials credentials,
Request request,
const Reply reply 

Authenticates the request using the credentials in response to the corresponding reply.

Implements Authentication.