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
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.voidonCallStartedMessageStream(AuthContext authContext) Authorize a request to open a client-streaming rpc MessageStream.voidonMessageReceivedFetchObject(AuthContext authContext, FetchObjectRequest request) Authorize a request to FetchObject.voidonMessageReceivedMessageStream(AuthContext authContext, StreamRequest request) Authorize a request to MessageStream.voidonMessageReceivedNextMessageStream(AuthContext authContext, StreamRequest request) Authorize a request to NextMessageStream.voidonMessageReceivedOpenMessageStream(AuthContext authContext, StreamRequest request) Authorize a request to OpenMessageStream.
-
Method Details
-
intercept
Wrap the real implementation with authorization checks.- Specified by:
interceptin 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
-