Wolframe, 0.0.3

_Wolframe::AAAA::AuthenticationUnit Class Referenceabstract

This is the base class for the authentication unit implementations. More...

#include <authUnit.hpp>

Public Member Functions

 AuthenticationUnit (const std::string &id)
 
virtual ~AuthenticationUnit ()
 
const std::string & identifier () const
 
virtual bool resolveDB (const db::DatabaseProvider &)
 
virtual const char * className () const =0
 
virtual const char ** mechs () const =0
 The list of mechs implemented by this unit. More...
 
virtual AuthenticatorSliceslice (const std::string &mech, const net::RemoteEndpoint &client)=0
 An AuthenticatorSlice for the required mech (or NULL) More...
 
virtual PasswordChangerpasswordChanger (const User &, const net::RemoteEndpoint &)
 A PasswordChanger for the user (or NULL) More...
 

Private Attributes

const std::string m_identifier
 

Detailed Description

This is the base class for the authentication unit implementations.

Constructor & Destructor Documentation

_Wolframe::AAAA::AuthenticationUnit::AuthenticationUnit ( const std::string &  id)
inline
virtual _Wolframe::AAAA::AuthenticationUnit::~AuthenticationUnit ( )
inlinevirtual

Member Function Documentation

virtual const char* _Wolframe::AAAA::AuthenticationUnit::className ( ) const
pure virtual
const std::string& _Wolframe::AAAA::AuthenticationUnit::identifier ( ) const
inline
virtual const char** _Wolframe::AAAA::AuthenticationUnit::mechs ( ) const
pure virtual

The list of mechs implemented by this unit.

Note
The authentication unit returns the mechs as an array of strings. The array ends with a NULL Be aware that the other interfaces use a vector instead.
virtual PasswordChanger* _Wolframe::AAAA::AuthenticationUnit::passwordChanger ( const User ,
const net::RemoteEndpoint  
)
inlinevirtual

A PasswordChanger for the user (or NULL)

virtual bool _Wolframe::AAAA::AuthenticationUnit::resolveDB ( const db::DatabaseProvider )
inlinevirtual
virtual AuthenticatorSlice* _Wolframe::AAAA::AuthenticationUnit::slice ( const std::string &  mech,
const net::RemoteEndpoint client 
)
pure virtual

An AuthenticatorSlice for the required mech (or NULL)

Member Data Documentation

const std::string _Wolframe::AAAA::AuthenticationUnit::m_identifier
private

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