userver: server::handlers::auth::digest::Hasher Class Reference
Loading...
Searching...
No Matches
server::handlers::auth::digest::Hasher Class Referencefinal

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

Detailed Description

Used for data hashing and "nonce" generating.

Definition at line 34 of file auth_checker_base.hpp.

Public Member Functions

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

Constructor & Destructor Documentation

◆ Hasher()

server::handlers::auth::digest::Hasher::Hasher ( std::string_view algorithm,
const SecdistConfig & secdist_config )

Constructor from the hash algorithm name from "crypto" namespace to be used for hashing and storages::secdist::SecdistConfig containing a server secret key http_server_digest_auth_secret to be used for "nonce" generating.

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: