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
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.ServerServiceDefinitionintercept(io.grpc.health.v1.HealthGrpc.HealthImplBase delegate) Wrap the real implementation with authorization checks.voidonMessageReceivedCheck(AuthContext authContext, io.grpc.health.v1.HealthCheckRequest request) Authorize a request to Check.voidonMessageReceivedWatch(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:
interceptin 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
-