Package io.deephaven.auth.codegen.impl
Interface ConsoleServiceAuthWiring
- All Superinterfaces:
ServiceAuthWiring<ConsoleServiceGrpc.ConsoleServiceImplBase>
- All Known Implementing Classes:
ConsoleServiceAuthWiring.AllowAll
,ConsoleServiceAuthWiring.DenyAll
,ConsoleServiceAuthWiring.TestUseOnly
public interface ConsoleServiceAuthWiring
extends ServiceAuthWiring<ConsoleServiceGrpc.ConsoleServiceImplBase>
This interface provides type-safe authorization hooks for ConsoleServiceGrpc.
-
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
onCallStartedAutoCompleteStream
(AuthContext authContext) Authorize a request to open a client-streaming rpc AutoCompleteStream.void
onMessageReceivedAutoCompleteStream
(AuthContext authContext, AutoCompleteRequest request) Authorize a request to AutoCompleteStream.void
onMessageReceivedBindTableToVariable
(AuthContext authContext, BindTableToVariableRequest request) Authorize a request to BindTableToVariable.void
onMessageReceivedCancelAutoComplete
(AuthContext authContext, CancelAutoCompleteRequest request) Authorize a request to CancelAutoComplete.void
onMessageReceivedCancelCommand
(AuthContext authContext, CancelCommandRequest request) Authorize a request to CancelCommand.void
onMessageReceivedExecuteCommand
(AuthContext authContext, ExecuteCommandRequest request) Authorize a request to ExecuteCommand.void
onMessageReceivedGetConsoleTypes
(AuthContext authContext, GetConsoleTypesRequest request) Authorize a request to GetConsoleTypes.void
onMessageReceivedGetHeapInfo
(AuthContext authContext, GetHeapInfoRequest request) Authorize a request to GetHeapInfo.void
onMessageReceivedNextAutoCompleteStream
(AuthContext authContext, AutoCompleteRequest request) Authorize a request to NextAutoCompleteStream.void
onMessageReceivedOpenAutoCompleteStream
(AuthContext authContext, AutoCompleteRequest request) Authorize a request to OpenAutoCompleteStream.void
onMessageReceivedStartConsole
(AuthContext authContext, StartConsoleRequest request) Authorize a request to StartConsole.void
onMessageReceivedSubscribeToLogs
(AuthContext authContext, LogSubscriptionRequest request) Authorize a request to SubscribeToLogs.
-
Method Details
-
intercept
default io.grpc.ServerServiceDefinition intercept(ConsoleServiceGrpc.ConsoleServiceImplBase delegate) Wrap the real implementation with authorization checks.- Specified by:
intercept
in interfaceServiceAuthWiring<ConsoleServiceGrpc.ConsoleServiceImplBase>
- Parameters:
delegate
- the real service implementation- Returns:
- the wrapped service implementation
-
onMessageReceivedGetConsoleTypes
Authorize a request to GetConsoleTypes.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke GetConsoleTypes
-
onMessageReceivedStartConsole
Authorize a request to StartConsole.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke StartConsole
-
onMessageReceivedGetHeapInfo
Authorize a request to GetHeapInfo.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke GetHeapInfo
-
onMessageReceivedSubscribeToLogs
Authorize a request to SubscribeToLogs.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke SubscribeToLogs
-
onMessageReceivedExecuteCommand
Authorize a request to ExecuteCommand.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke ExecuteCommand
-
onMessageReceivedCancelCommand
Authorize a request to CancelCommand.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke CancelCommand
-
onMessageReceivedBindTableToVariable
void onMessageReceivedBindTableToVariable(AuthContext authContext, BindTableToVariableRequest request) Authorize a request to BindTableToVariable.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke BindTableToVariable
-
onCallStartedAutoCompleteStream
Authorize a request to open a client-streaming rpc AutoCompleteStream.- Parameters:
authContext
- the authentication context of the request- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke AutoCompleteStream
-
onMessageReceivedAutoCompleteStream
Authorize a request to AutoCompleteStream.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke AutoCompleteStream
-
onMessageReceivedCancelAutoComplete
void onMessageReceivedCancelAutoComplete(AuthContext authContext, CancelAutoCompleteRequest request) Authorize a request to CancelAutoComplete.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke CancelAutoComplete
-
onMessageReceivedOpenAutoCompleteStream
Authorize a request to OpenAutoCompleteStream.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke OpenAutoCompleteStream
-
onMessageReceivedNextAutoCompleteStream
Authorize a request to NextAutoCompleteStream.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke NextAutoCompleteStream
-