NAWA 0.9
Web Application Framework for C++
nawa::hashing::HashTypeTable Class Referenceabstract

#include <nawa/hashing/HashTypeTable/HashTypeTable.h>

Inherited by nawa::hashing::DefaultHashTypeTable.

Public Member Functions

virtual std::shared_ptr< HashingEnginegetEngine (std::string hash) const =0
 

Detailed Description

A HashTypeTable should be used to determine the HashingEngine that can be used to verify a certain hash. It may take constructor parameters.

Definition at line 36 of file HashTypeTable.h.

Member Function Documentation

◆ getEngine()

virtual std::shared_ptr< HashingEngine > nawa::hashing::HashTypeTable::getEngine ( std::string  hash) const
pure virtual

Determine a HashingEngine that can be used to verify the given hash (usually the one that generated it).

Parameters
hashHash to be verified (in the standard format, e.g., "$2a$10$...").
Returns
Shared pointer to an instance of a matching HashingEngine. If no matching HashingEngine could be determined by this function, the returned shared_ptr should be empty.

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