Package io.deephaven.auth.codegen.impl
Interface InputTableServiceContextualAuthWiring
- All Known Implementing Classes:
InputTableServiceContextualAuthWiring.AllowAll
,InputTableServiceContextualAuthWiring.DelegateAll
,InputTableServiceContextualAuthWiring.DenyAll
,InputTableServiceContextualAuthWiring.TestUseOnly
public interface InputTableServiceContextualAuthWiring
This interface provides type-safe authorization hooks for InputTableServiceGrpc.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A default implementation that allows all requests.static class
A default implementation that funnels all requests to invokecheckPermission
.static class
A default implementation that denies all requests.static class
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkPermissionAddTableToInputTable
(AuthContext authContext, AddTableRequest request, List<Table> sourceTables) Authorize a request to AddTableToInputTable.void
checkPermissionDeleteTableFromInputTable
(AuthContext authContext, DeleteTableRequest request, List<Table> sourceTables) Authorize a request to DeleteTableFromInputTable.
-
Method Details
-
checkPermissionAddTableToInputTable
void checkPermissionAddTableToInputTable(AuthContext authContext, AddTableRequest request, List<Table> sourceTables) Authorize a request to AddTableToInputTable.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorizesourceTables
- the operation's source tables- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke AddTableToInputTable
-
checkPermissionDeleteTableFromInputTable
void checkPermissionDeleteTableFromInputTable(AuthContext authContext, DeleteTableRequest request, List<Table> sourceTables) Authorize a request to DeleteTableFromInputTable.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorizesourceTables
- the operation's source tables- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke DeleteTableFromInputTable
-