file_watcher_certificate_provider_factory.h
Go to the documentation of this file.
1 //
2 //
3 // Copyright 2020 gRPC authors.
4 //
5 // Licensed under the Apache License, Version 2.0 (the "License");
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17 //
18 
19 #ifndef GRPC_CORE_EXT_XDS_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H
20 #define GRPC_CORE_EXT_XDS_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H
21 
23 
24 #include <string>
25 
26 #include <grpc/grpc_security.h>
27 
32 #include "src/core/lib/json/json.h"
33 
34 namespace grpc_core {
35 
38  public:
40  public:
41  static RefCountedPtr<Config> Parse(const Json& config_json,
43 
44  const char* name() const override;
45 
46  std::string ToString() const override;
47 
49  return identity_cert_file_;
50  }
51 
52  const std::string& private_key_file() const { return private_key_file_; }
53 
54  const std::string& root_cert_file() const { return root_cert_file_; }
55 
57 
58  private:
63  };
64 
65  const char* name() const override;
66 
68  CreateCertificateProviderConfig(const Json& config_json,
69  grpc_error_handle* error) override;
70 
73 };
74 
75 } // namespace grpc_core
76 
77 #endif // GRPC_CORE_EXT_XDS_FILE_WATCHER_CERTIFICATE_PROVIDER_FACTORY_H
grpc_core::FileWatcherCertificateProviderFactory::Config::name
const char * name() const override
Definition: file_watcher_certificate_provider_factory.cc:50
grpc_core::FileWatcherCertificateProviderFactory::Config::private_key_file_
std::string private_key_file_
Definition: file_watcher_certificate_provider_factory.h:60
grpc_core::FileWatcherCertificateProviderFactory::Config
Definition: file_watcher_certificate_provider_factory.h:39
grpc_core
Definition: call_metric_recorder.h:31
testing::internal::string
::std::string string
Definition: bloaty/third_party/protobuf/third_party/googletest/googletest/include/gtest/internal/gtest-port.h:881
error
grpc_error_handle error
Definition: retry_filter.cc:499
grpc_security.h
grpc_core::FileWatcherCertificateProviderFactory::Config::private_key_file
const std::string & private_key_file() const
Definition: file_watcher_certificate_provider_factory.h:52
grpc_core::RefCountedPtr
Definition: ref_counted_ptr.h:35
Json
JSON (JavaScript Object Notation).
Definition: third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h:227
grpc_core::FileWatcherCertificateProviderFactory::Config::refresh_interval_
Duration refresh_interval_
Definition: file_watcher_certificate_provider_factory.h:62
time.h
error.h
grpc_core::FileWatcherCertificateProviderFactory::Config::ToString
std::string ToString() const override
Definition: file_watcher_certificate_provider_factory.cc:54
json.h
grpc_core::FileWatcherCertificateProviderFactory
Definition: file_watcher_certificate_provider_factory.h:36
grpc_core::FileWatcherCertificateProviderFactory::Config::Parse
static RefCountedPtr< Config > Parse(const Json &config_json, grpc_error_handle *error)
Definition: file_watcher_certificate_provider_factory.cc:75
grpc_core::FileWatcherCertificateProviderFactory::Config::refresh_interval
Duration refresh_interval() const
Definition: file_watcher_certificate_provider_factory.h:56
grpc_core::FileWatcherCertificateProviderFactory::Config::root_cert_file
const std::string & root_cert_file() const
Definition: file_watcher_certificate_provider_factory.h:54
grpc_core::FileWatcherCertificateProviderFactory::Config::identity_cert_file
const std::string & identity_cert_file() const
Definition: file_watcher_certificate_provider_factory.h:48
grpc_core::FileWatcherCertificateProviderFactory::Config::identity_cert_file_
std::string identity_cert_file_
Definition: file_watcher_certificate_provider_factory.h:59
grpc_core::CertificateProviderFactory::Config
Definition: certificate_provider_factory.h:40
certificate_provider_factory.h
ref_counted_ptr.h
config_s
Definition: bloaty/third_party/zlib/deflate.c:120
grpc_core::FileWatcherCertificateProviderFactory::Config::root_cert_file_
std::string root_cert_file_
Definition: file_watcher_certificate_provider_factory.h:61
grpc_core::CertificateProviderFactory
Definition: certificate_provider_factory.h:37
grpc_error
Definition: error_internal.h:42
grpc_core::Duration
Definition: src/core/lib/gprpp/time.h:122
grpc_core::FileWatcherCertificateProviderFactory::CreateCertificateProviderConfig
RefCountedPtr< CertificateProviderFactory::Config > CreateCertificateProviderConfig(const Json &config_json, grpc_error_handle *error) override
Definition: file_watcher_certificate_provider_factory.cc:123
grpc_core::FileWatcherCertificateProviderFactory::name
const char * name() const override
Definition: file_watcher_certificate_provider_factory.cc:118
grpc_core::FileWatcherCertificateProviderFactory::CreateCertificateProvider
RefCountedPtr< grpc_tls_certificate_provider > CreateCertificateProvider(RefCountedPtr< CertificateProviderFactory::Config > config) override
Definition: file_watcher_certificate_provider_factory.cc:130
port_platform.h


grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:23