Go to the documentation of this file.
15 #ifndef GRPCPP_SECURITY_AUTHORIZATION_POLICY_PROVIDER_H
16 #define GRPCPP_SECURITY_AUTHORIZATION_POLICY_PROVIDER_H
25 namespace experimental {
41 static std::shared_ptr<StaticDataAuthorizationPolicyProvider>
Create(
48 : c_provider_(provider) {}
65 static std::shared_ptr<FileWatcherAuthorizationPolicyProvider>
Create(
66 const std::string& authz_policy_path,
unsigned int refresh_interval_sec,
73 : c_provider_(provider) {}
88 #endif // GRPCPP_SECURITY_AUTHORIZATION_POLICY_PROVIDER_H
Definition: authorization_policy_provider.h:62
Definition: authorization_policy_provider.h:38
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
Definition: authorization_policy_provider.h:30
FileWatcherAuthorizationPolicyProvider(grpc_authorization_policy_provider *provider)
Definition: authorization_policy_provider.h:71
grpc_authorization_policy_provider * c_provider() override
Definition: authorization_policy_provider.h:52
Did it work? If it didn't, why?
Definition: status.h:34
virtual grpc_authorization_policy_provider * c_provider()=0
~StaticDataAuthorizationPolicyProvider() override
static std::shared_ptr< FileWatcherAuthorizationPolicyProvider > Create(const std::string &authz_policy_path, unsigned int refresh_interval_sec, grpc::Status *status)
grpc_authorization_policy_provider * c_provider() override
Definition: authorization_policy_provider.h:77
struct grpc_authorization_policy_provider grpc_authorization_policy_provider
EXPERIMENTAL - Subject to change.
Definition: grpc_security.h:109
static std::shared_ptr< StaticDataAuthorizationPolicyProvider > Create(const std::string &authz_policy, grpc::Status *status)
virtual ~AuthorizationPolicyProviderInterface()=default
StaticDataAuthorizationPolicyProvider(grpc_authorization_policy_provider *provider)
Definition: authorization_policy_provider.h:46
~FileWatcherAuthorizationPolicyProvider() override