OpenAB  1.0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenAB::BasicHttpAuthorizer Class Reference

Class BasicHttpAuthorizer. Implements HTTP Basic authentication method. More...

#include <BasicHttpAuthorizer.hpp>

Inheritance diagram for OpenAB::BasicHttpAuthorizer:
Collaboration diagram for OpenAB::BasicHttpAuthorizer:

Public Member Functions

 BasicHttpAuthorizer ()
 Constructor. More...
 
virtual ~BasicHttpAuthorizer ()
 Destructor, virtual by default. More...
 
void setCredentials (const std::string &login, const OpenAB::SecureString &password)
 Sets user credentials. More...
 
bool authorizeMessage (HttpMessage *curl)
 Authorizes message. More...
 
- Public Member Functions inherited from OpenAB::HttpAuthorizer
virtual ~HttpAuthorizer ()
 Destructor, virtual by default. More...
 

Detailed Description

Class BasicHttpAuthorizer. Implements HTTP Basic authentication method.

Constructor & Destructor Documentation

OpenAB::BasicHttpAuthorizer::BasicHttpAuthorizer ( )

Constructor.

OpenAB::BasicHttpAuthorizer::~BasicHttpAuthorizer ( )
virtual

Destructor, virtual by default.

Member Function Documentation

bool OpenAB::BasicHttpAuthorizer::authorizeMessage ( HttpMessage msg)
virtual

Authorizes message.

Parameters
msgmessage to be authorized.
Returns
true if message was authorized successfully, false otherwise.

Implements OpenAB::HttpAuthorizer.

void OpenAB::BasicHttpAuthorizer::setCredentials ( const std::string &  login,
const OpenAB::SecureString password 
)

Sets user credentials.

Parameters
[in]loginuser login.
[in]passworduser password.

The documentation for this class was generated from the following files: