Authentication Class Referenceabstract

#include <Pt/Http/Authenticator.h>

HTTP authentication for clients.

Inherited by BasicAuthentication.

Public Types

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

Public Member Functions

 Authentication (const std::string &name)
 Construct with type name. More...
 
 Authentication (const char *name)
 Construct with type name. More...
 
virtual ~Authentication ()
 Destructor.
 
virtual bool authenticate (const Credentials &credentials, Request &request, const Reply &reply)=0
 Authenticate a request in response to a reply. More...
 
const std::string & name () const
 Returns the type name of the authentication.
 

Constructor & Destructor Documentation

Authentication ( const std::string &  name)

The name is the type name of the authentication method, such as "basic".

Authentication ( const char *  name)

The name is the type name of the authentication method, such as "basic".

Member Function Documentation

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

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

Implemented in BasicAuthentication.