Package io.deephaven.auth.codegen.impl
Interface ObjectServiceAuthWiring
- All Superinterfaces:
ServiceAuthWiring<ObjectServiceGrpc.ObjectServiceImplBase>
- All Known Implementing Classes:
ObjectServiceAuthWiring.AllowAll
,ObjectServiceAuthWiring.DenyAll
,ObjectServiceAuthWiring.TestUseOnly
public interface ObjectServiceAuthWiring
extends ServiceAuthWiring<ObjectServiceGrpc.ObjectServiceImplBase>
This interface provides type-safe authorization hooks for ObjectServiceGrpc.
-
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
onCallStartedMessageStream
(AuthContext authContext) Authorize a request to open a client-streaming rpc MessageStream.void
onMessageReceivedFetchObject
(AuthContext authContext, FetchObjectRequest request) Authorize a request to FetchObject.void
onMessageReceivedMessageStream
(AuthContext authContext, StreamRequest request) Authorize a request to MessageStream.void
onMessageReceivedNextMessageStream
(AuthContext authContext, StreamRequest request) Authorize a request to NextMessageStream.void
onMessageReceivedOpenMessageStream
(AuthContext authContext, StreamRequest request) Authorize a request to OpenMessageStream.
-
Method Details
-
intercept
Wrap the real implementation with authorization checks.- Specified by:
intercept
in interfaceServiceAuthWiring<ObjectServiceGrpc.ObjectServiceImplBase>
- Parameters:
delegate
- the real service implementation- Returns:
- the wrapped service implementation
-
onMessageReceivedFetchObject
Authorize a request to FetchObject.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke FetchObject
-
onCallStartedMessageStream
Authorize a request to open a client-streaming rpc MessageStream.- Parameters:
authContext
- the authentication context of the request- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke MessageStream
-
onMessageReceivedMessageStream
Authorize a request to MessageStream.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke MessageStream
-
onMessageReceivedOpenMessageStream
Authorize a request to OpenMessageStream.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke OpenMessageStream
-
onMessageReceivedNextMessageStream
Authorize a request to NextMessageStream.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke NextMessageStream
-