userver: userver/s3api/authenticators/utils.hpp File Reference
Loading...
Searching...
No Matches
utils.hpp File Reference

Detailed Description

Helpers for writing your own authenticators.

Definition in file utils.hpp.

Go to the source code of this file.

#include <string>
#include <userver/s3api/models/request.hpp>
#include <userver/s3api/models/secret.hpp>
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  s3api
 Top namespace for S3 library.
 

Functions

std::string s3api::authenticators::MakeHeaderDate ()
 
std::string s3api::authenticators::MakeHeaderContentMd5 (const std::string &data)
 
std::string s3api::authenticators::MakeHeaderAuthorization (const std::string &string_to_sign, const std::string &access_key, const Secret &secret_key)
 
std::string s3api::authenticators::MakeSignature (const std::string &string_to_sign, const Secret &secret_key)
 
std::string s3api::authenticators::MakeStringToSign (const Request &request, const std::string &header_date, const std::optional< std::string > &header_content_md5)
 

Function Documentation

◆ MakeHeaderAuthorization()

std::string s3api::authenticators::MakeHeaderAuthorization ( const std::string & string_to_sign,
const std::string & access_key,
const Secret & secret_key )

Definition at line 206 of file utils.cpp.

◆ MakeHeaderContentMd5()

std::string s3api::authenticators::MakeHeaderContentMd5 ( const std::string & data)

Definition at line 74 of file utils.cpp.

◆ MakeHeaderDate()

std::string s3api::authenticators::MakeHeaderDate ( )

Definition at line 54 of file utils.cpp.

◆ MakeSignature()

std::string s3api::authenticators::MakeSignature ( const std::string & string_to_sign,
const Secret & secret_key )

Definition at line 201 of file utils.cpp.

◆ MakeStringToSign()

std::string s3api::authenticators::MakeStringToSign ( const Request & request,
const std::string & header_date,
const std::optional< std::string > & header_content_md5 )

Definition at line 78 of file utils.cpp.