Package com.linkedin.venice.acl
Interface StaticAccessController
-
- All Superinterfaces:
AccessController
public interface StaticAccessController extends AccessController
A StaticAccessController is an AccessController with an immutable resource list.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
hasAccess(java.security.cert.X509Certificate clientCert, java.lang.String resource, java.lang.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 Detail
-
hasAccess
boolean hasAccess(java.security.cert.X509Certificate clientCert, java.lang.String resource, java.lang.String method)
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
.
-
-