Apache Mesos
Public Member Functions | List of all members
process::http::authentication::BasicAuthenticator Class Reference

Implements the "Basic" authentication scheme using a fixed set of credentials. More...

#include <authenticator.hpp>

Inheritance diagram for process::http::authentication::BasicAuthenticator:
process::http::authentication::Authenticator

Public Member Functions

 BasicAuthenticator (const std::string &realm, const hashmap< std::string, std::string > &credentials)
 
 ~BasicAuthenticator () override
 
Future< AuthenticationResultauthenticate (const http::Request &request) override
 Authenticates the given HTTP request. More...
 
std::string scheme () const override
 Returns the name of the authentication scheme implemented. More...
 
- Public Member Functions inherited from process::http::authentication::Authenticator
virtual ~Authenticator ()
 

Detailed Description

Implements the "Basic" authentication scheme using a fixed set of credentials.

Constructor & Destructor Documentation

process::http::authentication::BasicAuthenticator::BasicAuthenticator ( const std::string &  realm,
const hashmap< std::string, std::string > &  credentials 
)
process::http::authentication::BasicAuthenticator::~BasicAuthenticator ( )
override

Member Function Documentation

Future<AuthenticationResult> process::http::authentication::BasicAuthenticator::authenticate ( const http::Request request)
overridevirtual

Authenticates the given HTTP request.

NOTE: Libprocess does not perform any timeout handling of the returned future, it is thus required that this future is satisfied within a finite amount of time! Otherwise, the socket will be remain open indefinitely!

Implements process::http::authentication::Authenticator.

std::string process::http::authentication::BasicAuthenticator::scheme ( ) const
overridevirtual

Returns the name of the authentication scheme implemented.

Implements process::http::authentication::Authenticator.


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