Package io.deephaven.auth.codegen.impl
Interface StorageServiceAuthWiring
- All Superinterfaces:
ServiceAuthWiring<StorageServiceGrpc.StorageServiceImplBase>
- All Known Implementing Classes:
StorageServiceAuthWiring.AllowAll
,StorageServiceAuthWiring.DenyAll
,StorageServiceAuthWiring.TestUseOnly
public interface StorageServiceAuthWiring
extends ServiceAuthWiring<StorageServiceGrpc.StorageServiceImplBase>
This interface provides type-safe authorization hooks for StorageServiceGrpc.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from interface io.deephaven.auth.ServiceAuthWiring
ServiceAuthWiring.AuthorizingServerCallHandler<ReqT,
RespT>, ServiceAuthWiring.CallStartedCallback, ServiceAuthWiring.MessageReceivedCallback<T> -
Method Summary
Modifier and TypeMethodDescriptiondefault io.grpc.ServerServiceDefinition
Wrap the real implementation with authorization checks.void
onMessageReceivedCreateDirectory
(AuthContext authContext, CreateDirectoryRequest request) Authorize a request to CreateDirectory.void
onMessageReceivedDeleteItem
(AuthContext authContext, DeleteItemRequest request) Authorize a request to DeleteItem.void
onMessageReceivedFetchFile
(AuthContext authContext, FetchFileRequest request) Authorize a request to FetchFile.void
onMessageReceivedListItems
(AuthContext authContext, ListItemsRequest request) Authorize a request to ListItems.void
onMessageReceivedMoveItem
(AuthContext authContext, MoveItemRequest request) Authorize a request to MoveItem.void
onMessageReceivedSaveFile
(AuthContext authContext, SaveFileRequest request) Authorize a request to SaveFile.
-
Method Details
-
intercept
default io.grpc.ServerServiceDefinition intercept(StorageServiceGrpc.StorageServiceImplBase delegate) Wrap the real implementation with authorization checks.- Specified by:
intercept
in interfaceServiceAuthWiring<StorageServiceGrpc.StorageServiceImplBase>
- Parameters:
delegate
- the real service implementation- Returns:
- the wrapped service implementation
-
onMessageReceivedListItems
Authorize a request to ListItems.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke ListItems
-
onMessageReceivedFetchFile
Authorize a request to FetchFile.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke FetchFile
-
onMessageReceivedSaveFile
Authorize a request to SaveFile.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke SaveFile
-
onMessageReceivedMoveItem
Authorize a request to MoveItem.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke MoveItem
-
onMessageReceivedCreateDirectory
Authorize a request to CreateDirectory.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke CreateDirectory
-
onMessageReceivedDeleteItem
Authorize a request to DeleteItem.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke DeleteItem
-