Go to the documentation of this file.
19 #ifndef GRPC_CORE_EXT_XDS_XDS_CERTIFICATE_PROVIDER_H
20 #define GRPC_CORE_EXT_XDS_XDS_CERTIFICATE_PROVIDER_H
29 #include "absl/base/thread_annotations.h"
30 #include "absl/strings/string_view.h"
43 #define GRPC_ARG_XDS_CERTIFICATE_PROVIDER \
44 "grpc.internal.xds_certificate_provider"
68 identity_cert_distributor);
74 bool require_client_certificate);
109 identity_cert_distributor);
126 bool root_being_watched,
127 bool identity_being_watched);
151 bool identity_being_watched);
174 #endif // GRPC_CORE_EXT_XDS_XDS_CERTIFICATE_PROVIDER_H
bool IsSafeToRemove() const
void set_require_client_certificate(bool require_client_certificate)
bool watching_identity_certs_
RefCountedPtr< grpc_tls_certificate_distributor > identity_cert_distributor_
bool watching_root_certs_
void UpdateRootCertNameAndDistributor(const std::string &cert_name, absl::string_view root_cert_name, RefCountedPtr< grpc_tls_certificate_distributor > root_cert_distributor)
void UpdateRootCertWatcher(const std::string &cert_name, grpc_tls_certificate_distributor *root_cert_distributor)
RefCountedPtr< grpc_tls_certificate_distributor > distributor() const override
XdsRouteConfigResource::Route::Matchers matchers
grpc_tls_certificate_distributor::TlsCertificatesWatcherInterface * root_cert_watcher_
std::string identity_cert_name_
bool GetRequireClientCertificate(const std::string &cert_name)
bool ProvidesRootCerts(const std::string &cert_name)
void UpdateRootCertNameAndDistributor(const std::string &cert_name, absl::string_view root_cert_name, RefCountedPtr< grpc_tls_certificate_distributor > root_cert_distributor)
bool require_client_certificate_
static RefCountedPtr< XdsCertificateProvider > GetFromChannelArgs(const grpc_channel_args *args)
~ClusterCertificateState()
absl::string_view cluster
void WatchStatusCallback(const std::string &cert_name, bool root_being_watched, bool identity_being_watched)
bool require_client_certificate() const
grpc_tls_certificate_distributor::TlsCertificatesWatcherInterface * identity_cert_watcher_
std::vector< StringMatcher > GetSanMatchers(const std::string &cluster)
void UpdateIdentityCertNameAndDistributor(const std::string &cert_name, absl::string_view identity_cert_name, RefCountedPtr< grpc_tls_certificate_distributor > identity_cert_distributor)
bool ProvidesIdentityCerts() const
std::string root_cert_name_
void UpdateSubjectAlternativeNameMatchers(const std::string &cluster, std::vector< StringMatcher > matchers)
RefCountedPtr< grpc_tls_certificate_distributor > distributor_
void WatchStatusCallback(std::string cert_name, bool root_being_watched, bool identity_being_watched)
~XdsCertificateProvider() override
void UpdateIdentityCertWatcher(const std::string &cert_name, grpc_tls_certificate_distributor *identity_cert_distributor)
int QsortCompare(const T &a, const T &b)
bool ProvidesRootCerts() const
void UpdateIdentityCertNameAndDistributor(const std::string &cert_name, absl::string_view identity_cert_name, RefCountedPtr< grpc_tls_certificate_distributor > identity_cert_distributor)
void UpdateRequireClientCertificate(const std::string &cert_name, bool require_client_certificate)
int CompareImpl(const grpc_tls_certificate_provider *other) const override
XdsCertificateProvider * xds_certificate_provider_
std::map< std::string, std::unique_ptr< ClusterCertificateState > > certificate_state_map_ ABSL_GUARDED_BY(mu_)
grpc_arg MakeChannelArg() const
RefCountedPtr< grpc_tls_certificate_distributor > root_cert_distributor_
UniqueTypeName type() const override
bool ProvidesIdentityCerts(const std::string &cert_name)
ClusterCertificateState(XdsCertificateProvider *xds_certificate_provider)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:57