Go to the documentation of this file.
15 #ifndef GRPC_CORE_LIB_SECURITY_AUTHORIZATION_GRPC_AUTHORIZATION_POLICY_PROVIDER_H
16 #define GRPC_CORE_LIB_SECURITY_AUTHORIZATION_GRPC_AUTHORIZATION_POLICY_PROVIDER_H
24 #include "absl/base/thread_annotations.h"
25 #include "absl/status/status.h"
26 #include "absl/status/statusor.h"
27 #include "absl/strings/string_view.h"
79 unsigned int refresh_interval_sec);
84 unsigned int refresh_interval_sec,
94 return {allow_engine_, deny_engine_};
119 #endif // GRPC_CORE_LIB_SECURITY_AUTHORIZATION_GRPC_AUTHORIZATION_POLICY_PROVIDER_H
std::unique_ptr< Thread > refresh_thread_
RefCountedPtr< AuthorizationEngine > allow_engine_
FileWatcherAuthorizationPolicyProvider(absl::string_view authz_policy_path, unsigned int refresh_interval_sec, absl::Status *status)
StaticDataAuthorizationPolicyProvider(RbacPolicies policies)
absl::Status ForceUpdate()
RefCountedPtr< AuthorizationEngine > deny_engine_
static absl::StatusOr< RefCountedPtr< grpc_authorization_policy_provider > > Create(absl::string_view authz_policy)
gpr_event shutdown_event_
AuthorizationEngines engines() override
std::string authz_policy_path_
std::string file_contents_
AuthorizationEngines engines() override
unsigned int refresh_interval_sec_
GRPC_CUSTOM_UTIL_STATUS Status
void SetCallbackForTesting(std::function< void(bool contents_changed, absl::Status Status)> cb)
std::function< void(bool contents_changed, absl::Status status)> cb_ ABSL_GUARDED_BY(mu_)
static absl::StatusOr< RefCountedPtr< grpc_authorization_policy_provider > > Create(absl::string_view authz_policy_path, unsigned int refresh_interval_sec)
OPENSSL_EXPORT pem_password_cb * cb
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:59:47