hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
peer_tls_certificates_provider.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PEER_TLS_CERTIFICATES_PROVIDER_HPP
7 #define IROHA_PEER_TLS_CERTIFICATES_PROVIDER_HPP
8 
9 #include <memory>
10 #include <string>
11 
12 #include "common/result.hpp"
15 
16 namespace shared_model {
17  namespace interface {
18  class Peer;
19  }
20 } // namespace shared_model
21 
22 namespace iroha {
23  namespace network {
24 
26  public:
27  virtual ~PeerTlsCertificatesProvider() = default;
28 
32  std::string>
33  get(const shared_model::interface::Peer &peer) const = 0;
34 
38  std::string>
39  get(shared_model::interface::types::PublicKeyHexStringView public_key)
40  const = 0;
41  };
42 
43  } // namespace network
44 } // namespace iroha
45 
46 #endif
std::string TLSCertificateType
Type of a TLS certificate.
Definition: types.hpp:95
Definition: peer.hpp:20
Definition: result_fwd.hpp:27
Definition: block_query.hpp:15
Definition: peer_tls_certificates_provider.hpp:25
Definition: command_executor.hpp:12