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
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.voidonCallStartedAutoCompleteStream(AuthContext authContext) Authorize a request to open a client-streaming rpc AutoCompleteStream.voidonMessageReceivedAutoCompleteStream(AuthContext authContext, AutoCompleteRequest request) Authorize a request to AutoCompleteStream.voidonMessageReceivedBindTableToVariable(AuthContext authContext, BindTableToVariableRequest request) Authorize a request to BindTableToVariable.voidonMessageReceivedCancelAutoComplete(AuthContext authContext, CancelAutoCompleteRequest request) Authorize a request to CancelAutoComplete.voidonMessageReceivedCancelCommand(AuthContext authContext, CancelCommandRequest request) Authorize a request to CancelCommand.voidonMessageReceivedExecuteCommand(AuthContext authContext, ExecuteCommandRequest request) Authorize a request to ExecuteCommand.voidonMessageReceivedGetConsoleTypes(AuthContext authContext, GetConsoleTypesRequest request) Authorize a request to GetConsoleTypes.voidonMessageReceivedGetHeapInfo(AuthContext authContext, GetHeapInfoRequest request) Authorize a request to GetHeapInfo.voidonMessageReceivedNextAutoCompleteStream(AuthContext authContext, AutoCompleteRequest request) Authorize a request to NextAutoCompleteStream.voidonMessageReceivedOpenAutoCompleteStream(AuthContext authContext, AutoCompleteRequest request) Authorize a request to OpenAutoCompleteStream.voidonMessageReceivedStartConsole(AuthContext authContext, StartConsoleRequest request) Authorize a request to StartConsole.voidonMessageReceivedSubscribeToLogs(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:
interceptin 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
-