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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classNested 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.ServerServiceDefinitionWrap the real implementation with authorization checks.voidonMessageReceivedCreateDirectory(AuthContext authContext, CreateDirectoryRequest request) Authorize a request to CreateDirectory.voidonMessageReceivedDeleteItem(AuthContext authContext, DeleteItemRequest request) Authorize a request to DeleteItem.voidonMessageReceivedFetchFile(AuthContext authContext, FetchFileRequest request) Authorize a request to FetchFile.voidonMessageReceivedListItems(AuthContext authContext, ListItemsRequest request) Authorize a request to ListItems.voidonMessageReceivedMoveItem(AuthContext authContext, MoveItemRequest request) Authorize a request to MoveItem.voidonMessageReceivedSaveFile(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:
interceptin 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
-