Elasticlient
Classes | Public Member Functions | Public Attributes | Protected Member Functions | List of all members
elasticlient::Client::SSLOption Struct Reference

Options to setup SSL for client connection. More...

#include <client.h>

Inheritance diagram for elasticlient::Client::SSLOption:
Inheritance graph
[legend]
Collaboration diagram for elasticlient::Client::SSLOption:
Collaboration graph
[legend]

Classes

struct  CaInfo
 Path to the custom CA bundle. More...
 
struct  CertFile
 Path to the certificate. More...
 
struct  KeyFile
 Path to the certificate key file. More...
 
struct  SSLOptionType
 Abstract base class for specific SSL options. More...
 
struct  VerifyHost
 Flag whether to verify host. More...
 
struct  VerifyPeer
 Flag whether to verify peer. More...
 

Public Member Functions

 SSLOption (SSLOption &&)
 
template<typename... T>
 SSLOption (T... args)
 
void setSslOption (const SSLOptionType &)
 Set single option - see SSLOptionType derived structs above.
 

Public Attributes

std::unique_ptr< SSLOptionImplementation > impl
 

Protected Member Functions

void accept (Implementation &) const override
 
template<typename T >
void optSetter (T &&t)
 Helper method to setup ssl options with SSLOptionType instances.
 
template<typename T , typename... TRest>
void optSetter (T &&t, TRest &&... ts)
 Helper method to setup ssl options with SSLOptionType instances.
 

Detailed Description

Options to setup SSL for client connection.

Constructor & Destructor Documentation

◆ SSLOption()

template<typename... T>
elasticlient::Client::SSLOption::SSLOption ( T...  args)
inline

Construct SSLOptions with various SSLOptionType options. All arguments passed to it must be base of SSLOptionType. If same types are passed, the last one overwrites preceeding one.

Member Function Documentation

◆ accept()

void elasticlient::Client::SSLOption::accept ( Implementation &  ) const
overrideprotectedvirtual

Method to set option to the Client (internal impl). Set (derived) option specific settings to the implementation.

Implements elasticlient::Client::ClientOption.


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