Package io.deephaven.auth.codegen.impl
Interface HealthAuthWiring
- All Superinterfaces:
ServiceAuthWiring<io.grpc.health.v1.HealthGrpc.HealthImplBase>
- All Known Implementing Classes:
HealthAuthWiring.AllowAll
,HealthAuthWiring.DenyAll
,HealthAuthWiring.TestUseOnly
public interface HealthAuthWiring
extends ServiceAuthWiring<io.grpc.health.v1.HealthGrpc.HealthImplBase>
This interface provides type-safe authorization hooks for HealthGrpc.
-
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
intercept
(io.grpc.health.v1.HealthGrpc.HealthImplBase delegate) Wrap the real implementation with authorization checks.void
onMessageReceivedCheck
(AuthContext authContext, io.grpc.health.v1.HealthCheckRequest request) Authorize a request to Check.void
onMessageReceivedWatch
(AuthContext authContext, io.grpc.health.v1.HealthCheckRequest request) Authorize a request to Watch.
-
Method Details
-
intercept
default io.grpc.ServerServiceDefinition intercept(io.grpc.health.v1.HealthGrpc.HealthImplBase delegate) Wrap the real implementation with authorization checks.- Specified by:
intercept
in interfaceServiceAuthWiring<io.grpc.health.v1.HealthGrpc.HealthImplBase>
- Parameters:
delegate
- the real service implementation- Returns:
- the wrapped service implementation
-
onMessageReceivedCheck
Authorize a request to Check.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke Check
-
onMessageReceivedWatch
Authorize a request to Watch.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke Watch
-