Go to the documentation of this file.
17 #ifndef GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_GRPC_TLS_CERTIFICATE_PROVIDER_H
18 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_GRPC_TLS_CERTIFICATE_PROVIDER_H
25 #include "absl/base/thread_annotations.h"
26 #include "absl/status/statusor.h"
27 #include "absl/strings/string_view.h"
28 #include "absl/types/optional.h"
136 unsigned int refresh_interval_sec);
198 #endif // GRPC_CORE_LIB_SECURITY_CREDENTIALS_TLS_GRPC_TLS_CERTIFICATE_PROVIDER_H
virtual int CompareImpl(const grpc_tls_certificate_provider *other) const =0
std::string private_key_path_
UniqueTypeName type() const override
int Compare(const UniqueTypeName &other) const
struct grpc_pollset_set grpc_pollset_set
absl::optional< std::string > ReadRootCertificatesFromFile(const std::string &root_cert_full_path)
~StaticDataCertificateProvider() override
RefCountedPtr< grpc_tls_certificate_distributor > distributor() const override
int CompareImpl(const grpc_tls_certificate_provider *other) const override
std::string root_certificate_ ABSL_GUARDED_BY(mu_)
RefCountedPtr< grpc_tls_certificate_distributor > distributor_
RefCountedPtr< grpc_tls_certificate_distributor > distributor_
UniqueTypeName type() const override
int Compare(const grpc_tls_certificate_provider *other) const
gpr_event shutdown_event_
bool identity_being_watched
unsigned int refresh_interval_sec_
std::string identity_certificate_path_
absl::optional< PemKeyCertPairList > ReadIdentityKeyCertPairFromFiles(const std::string &private_key_path, const std::string &identity_certificate_path)
bool identity_being_watched
absl::StatusOr< bool > PrivateKeyAndCertificateMatch(absl::string_view private_key, absl::string_view cert_chain)
PemKeyCertPairList pem_key_cert_pairs_
~FileWatcherCertificateProvider() override
RefCountedPtr< grpc_tls_certificate_distributor > distributor() const override
virtual grpc_core::RefCountedPtr< grpc_tls_certificate_distributor > distributor() const =0
int QsortCompare(const T &a, const T &b)
std::string root_certificate_
std::vector< PemKeyCertPair > PemKeyCertPairList
StaticDataCertificateProvider(std::string root_certificate, PemKeyCertPairList pem_key_cert_pairs)
FileWatcherCertificateProvider(std::string private_key_path, std::string identity_certificate_path, std::string root_cert_path, unsigned int refresh_interval_sec)
virtual grpc_core::UniqueTypeName type() const =0
int CompareImpl(const grpc_tls_certificate_provider *other) const override
std::string root_cert_path_
std::map< std::string, WatcherInfo > watcher_info_
virtual grpc_pollset_set * interested_parties() const
std::string root_certificate
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:48