userver: server::handlers::auth::digest::Hasher Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
server::handlers::auth::digest::Hasher Class Referencefinal

Used for data hashing and "nonce" generating. More...

#include <userver/server/handlers/auth/digest/auth_checker_base.hpp>

Public Member Functions

 Hasher (std::string_view algorithm)
 
std::string GenerateNonce (std::string_view etag) const
 Returns "nonce" directive value in hexadecimal format.
 
std::string GetHash (std::string_view data) const
 

Detailed Description

Used for data hashing and "nonce" generating.

Definition at line 30 of file auth_checker_base.hpp.

Constructor & Destructor Documentation

◆ Hasher()

server::handlers::auth::digest::Hasher::Hasher ( std::string_view  algorithm)

Constructor from the hash algorithm name from "crypto" namespace. Subsequently, all methods of the class will use this algorithm for hashing.

Member Function Documentation

◆ GetHash()

std::string server::handlers::auth::digest::Hasher::GetHash ( std::string_view  data) const

Returns data hashed according to the specified in constructor algorithm.


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