Seastar
High performance C++ framework for concurrent servers
Public Member Functions | List of all members
seastar::tls::credentials_builder Class Reference

Detailed Description

Intentionally "primitive", and more importantly, copyable container for certificate credentials options. The intendend use case is to be able to use across shards, at, say, initialization of tls objects

Note that loading invalid objects (malformed certs etc) will not generate exceptions until, earliest, the build functions are called.

#include <seastar/net/tls.hh>

Inheritance diagram for seastar::tls::credentials_builder:
seastar::tls::abstract_credentials

Public Member Functions

void set_dh_level (dh_params::level=dh_params::level::LEGACY)
 
void set_x509_trust (const blob &, x509_crt_format) override
 
void set_x509_crl (const blob &, x509_crt_format) override
 
void set_x509_key (const blob &cert, const blob &key, x509_crt_format) override
 
void set_simple_pkcs12 (const blob &, x509_crt_format, const sstring &password) override
 
future set_x509_trust_file (const sstring &cafile, x509_crt_format) override
 
future set_x509_crl_file (const sstring &crlfile, x509_crt_format) override
 
future set_x509_key_file (const sstring &cf, const sstring &kf, x509_crt_format) override
 
future set_simple_pkcs12_file (const sstring &pkcs12file, x509_crt_format, const sstring &password) override
 
future set_system_trust ()
 
void set_client_auth (client_auth)
 
void set_priority_string (const sstring &)
 
void apply_to (certificate_credentials &) const
 
shared_ptr< certificate_credentialsbuild_certificate_credentials () const
 
shared_ptr< server_credentialsbuild_server_credentials () const
 
future< shared_ptr< certificate_credentials > > build_reloadable_certificate_credentials (reload_callback={}, std::optional< std::chrono::milliseconds > tolerance={}) const
 
future< shared_ptr< server_credentials > > build_reloadable_server_credentials (reload_callback={}, std::optional< std::chrono::milliseconds > tolerance={}) const
 

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