userver: userver/server/handlers/auth/digest/types.hpp File Reference
Loading...
Searching...
No Matches
types.hpp File Reference

Detailed Description

Types for validating directive values.

Definition in file types.hpp.

Go to the source code of this file.

Namespaces

namespace  server::handlers
 Most common userver HTTP handlers.
 

Enumerations

enum class  server::handlers::auth::digest::HashAlgTypes {
  kMD5 ,
  kSHA256 ,
  kSHA512 ,
  kUnknown
}
 Supported hashing algorithms. More...
 
enum class  server::handlers::auth::digest::QopTypes {
  kAuth ,
  kUnknown
}
 Supported qop-options from https://datatracker.ietf.org/doc/html/rfc2617#section-3.2.1. More...
 

Variables

constexpr utils::TrivialBiMap server::handlers::auth::digest::kHashAlgToType
 
constexpr utils::TrivialBiMap server::handlers::auth::digest::kQopToType
 

Enumeration Type Documentation

◆ HashAlgTypes

Supported hashing algorithms.

Enumerator
kMD5 

MD5 algorithm.

kSHA256 

SHA256 algorithm.

kSHA512 

SHA512 algorithm.

kUnknown 

Unknown algorithm.

Definition at line 13 of file types.hpp.

◆ QopTypes

Supported qop-options from https://datatracker.ietf.org/doc/html/rfc2617#section-3.2.1.

Enumerator
kAuth 

The value "auth" indicates authentication from https://datatracker.ietf.org/doc/html/rfc2617#section-3.2.1

kUnknown 

Unknown qop-value.

Definition at line 22 of file types.hpp.

Variable Documentation

◆ kHashAlgToType

constexpr utils::TrivialBiMap server::handlers::auth::digest::kHashAlgToType
inlineconstexpr
Initial value:
= [](auto selector) {
return selector()
.Case("md5", HashAlgTypes::kMD5)
.Case("sha256", HashAlgTypes::kSHA256)
.Case("sha512", HashAlgTypes::kSHA512);
}

Definition at line 28 of file types.hpp.

◆ kQopToType

constexpr utils::TrivialBiMap server::handlers::auth::digest::kQopToType
inlineconstexpr
Initial value:
= [](auto selector) {
return selector().Case("auth", QopTypes::kAuth);
}

Definition at line 35 of file types.hpp.