Package io.deephaven.auth
Interface ServiceAuthWiring<ServiceImplBase>
- All Known Subinterfaces:
ApplicationServiceAuthWiring,ConfigServiceAuthWiring,ConsoleServiceAuthWiring,HealthAuthWiring,ObjectServiceAuthWiring,SessionServiceAuthWiring,StorageServiceAuthWiring
- All Known Implementing Classes:
ApplicationServiceAuthWiring.AllowAll,ApplicationServiceAuthWiring.DenyAll,ApplicationServiceAuthWiring.TestUseOnly,ConfigServiceAuthWiring.AllowAll,ConfigServiceAuthWiring.DenyAll,ConfigServiceAuthWiring.TestUseOnly,ConsoleServiceAuthWiring.AllowAll,ConsoleServiceAuthWiring.DenyAll,ConsoleServiceAuthWiring.TestUseOnly,HealthAuthWiring.AllowAll,HealthAuthWiring.DenyAll,HealthAuthWiring.TestUseOnly,ObjectServiceAuthWiring.AllowAll,ObjectServiceAuthWiring.DenyAll,ObjectServiceAuthWiring.TestUseOnly,SessionServiceAuthWiring.AllowAll,SessionServiceAuthWiring.DenyAll,SessionServiceAuthWiring.TestUseOnly,StorageServiceAuthWiring.AllowAll,StorageServiceAuthWiring.DenyAll,StorageServiceAuthWiring.TestUseOnly
public interface ServiceAuthWiring<ServiceImplBase>
This class is a marker interface for the generated service auth wiring classes.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic <ReqT,RespT>
io.grpc.ServerMethodDefinition<ReqT,RespT> intercept(io.grpc.ServerServiceDefinition service, String methodName, ServiceAuthWiring.CallStartedCallback callStartedCallback, ServiceAuthWiring.MessageReceivedCallback<ReqT> messageReceivedCallback) Wraps a given service method implementation with an auth check.io.grpc.ServerServiceDefinitionintercept(ServiceImplBase delegate) Intercepts all public methods on the service implementation base, and wraps them with auth checks.static voidstatic voidoperationNotAllowed(String reason)
-
Method Details
-
operationNotAllowed
static void operationNotAllowed() -
operationNotAllowed
-
intercept
Intercepts all public methods on the service implementation base, and wraps them with auth checks.- Parameters:
delegate- the real service implementation- Returns:
- a new service definition with wrapped auth checks
-
intercept
static <ReqT,RespT> io.grpc.ServerMethodDefinition<ReqT,RespT> intercept(io.grpc.ServerServiceDefinition service, String methodName, ServiceAuthWiring.CallStartedCallback callStartedCallback, ServiceAuthWiring.MessageReceivedCallback<ReqT> messageReceivedCallback) Wraps a given service method implementation with an auth check.- Parameters:
service- the service implementationmethodName- the method namecallStartedCallback- the callback to invoke when the call startsmessageReceivedCallback- the callback to invoke when a message is received- Returns:
- the wrapped server method definition
- ApiNote:
- Unary or Server-Streaming methods will not callback on call started as every request is required to have a request message.
-