Package com.linkedin.venice.acl
Interface StaticAccessController
- All Superinterfaces:
AccessController
A StaticAccessController is an AccessController with an immutable resource list.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
hasAccess
(X509Certificate clientCert, String resource, String method) Check if client has permission to access a particular resource.Methods inherited from interface com.linkedin.venice.acl.AccessController
getPrincipalId, hasAccessToAdminOperation, hasAccessToTopic, isAllowlistUsers
-
Method Details
-
hasAccess
Check if client has permission to access a particular resource. This method is invoked by every single request, therefore minimized execution time will result the best latency and throughput.- Specified by:
hasAccess
in interfaceAccessController
- Parameters:
clientCert
- the X509Certificate submitted by clientresource
- the resource being requestedmethod
- the operation (GET, POST, ...) to perform against the resource- Returns:
true
if client has permission to access, otherwisefalse
.
-