Go to the documentation of this file.
17 #ifndef GRPC_CORE_LIB_SECURITY_CREDENTIALS_CHANNEL_CREDS_REGISTRY_H
18 #define GRPC_CORE_LIB_SECURITY_CREDENTIALS_CHANNEL_CREDS_REGISTRY_H
25 #include <type_traits>
27 #include "absl/strings/string_view.h"
36 template <
typename T = grpc_channel_credentials>
56 template <
typename T = grpc_channel_credentials>
60 "ChannelCredsRegistry must be instantiated with "
61 "grpc_channel_credentials.");
75 std::map<absl::string_view, std::unique_ptr<ChannelCredsFactory<T>>>
92 return iter->second->CreateChannelCreds(
config);
97 std::map<absl::string_view, std::unique_ptr<ChannelCredsFactory<T>>>
103 #endif // GRPC_CORE_LIB_SECURITY_CREDENTIALS_CHANNEL_CREDS_REGISTRY_H
RefCountedPtr< T > CreateChannelCreds(const std::string &creds_type, const Json &config) const
ChannelCredsRegistry()=default
std::map< absl::string_view, std::unique_ptr< ChannelCredsFactory< T > > > factories_
virtual ~ChannelCredsFactory()
ChannelCredsRegistry Build()
constexpr absl::remove_reference_t< T > && move(T &&t) noexcept
JSON (JavaScript Object Notation).
bool IsSupported(const std::string &creds_type) const
virtual absl::string_view creds_type() const =delete
virtual bool IsValidConfig(const Json &config) const =delete
void RegisterChannelCredsFactory(std::unique_ptr< ChannelCredsFactory< T >> factory)
bool IsValidConfig(const std::string &creds_type, const Json &config) const
virtual RefCountedPtr< T > CreateChannelCreds(const Json &config) const =delete
std::map< absl::string_view, std::unique_ptr< ChannelCredsFactory< T > > > factories_
virtual ~ChannelCredsFactory()
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:52