Package io.deephaven.auth.codegen.impl
Interface SessionServiceAuthWiring
- All Superinterfaces:
ServiceAuthWiring<SessionServiceGrpc.SessionServiceImplBase>
- All Known Implementing Classes:
SessionServiceAuthWiring.AllowAll
,SessionServiceAuthWiring.DenyAll
,SessionServiceAuthWiring.TestUseOnly
public interface SessionServiceAuthWiring
extends ServiceAuthWiring<SessionServiceGrpc.SessionServiceImplBase>
This interface provides type-safe authorization hooks for SessionServiceGrpc.
-
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
onMessageReceivedCloseSession
(AuthContext authContext, HandshakeRequest request) Authorize a request to CloseSession.void
onMessageReceivedExportFromTicket
(AuthContext authContext, ExportRequest request) Authorize a request to ExportFromTicket.void
onMessageReceivedExportNotifications
(AuthContext authContext, ExportNotificationRequest request) Authorize a request to ExportNotifications.void
onMessageReceivedNewSession
(AuthContext authContext, HandshakeRequest request) Authorize a request to NewSession.void
onMessageReceivedPublishFromTicket
(AuthContext authContext, PublishRequest request) Authorize a request to PublishFromTicket.void
onMessageReceivedRefreshSessionToken
(AuthContext authContext, HandshakeRequest request) Authorize a request to RefreshSessionToken.void
onMessageReceivedRelease
(AuthContext authContext, ReleaseRequest request) Authorize a request to Release.void
onMessageReceivedTerminationNotification
(AuthContext authContext, TerminationNotificationRequest request) Authorize a request to TerminationNotification.
-
Method Details
-
intercept
default io.grpc.ServerServiceDefinition intercept(SessionServiceGrpc.SessionServiceImplBase delegate) Wrap the real implementation with authorization checks.- Specified by:
intercept
in interfaceServiceAuthWiring<SessionServiceGrpc.SessionServiceImplBase>
- Parameters:
delegate
- the real service implementation- Returns:
- the wrapped service implementation
-
onMessageReceivedNewSession
Authorize a request to NewSession.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke NewSession
-
onMessageReceivedRefreshSessionToken
Authorize a request to RefreshSessionToken.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke RefreshSessionToken
-
onMessageReceivedCloseSession
Authorize a request to CloseSession.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke CloseSession
-
onMessageReceivedRelease
Authorize a request to Release.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke Release
-
onMessageReceivedExportFromTicket
Authorize a request to ExportFromTicket.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke ExportFromTicket
-
onMessageReceivedPublishFromTicket
Authorize a request to PublishFromTicket.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke PublishFromTicket
-
onMessageReceivedExportNotifications
void onMessageReceivedExportNotifications(AuthContext authContext, ExportNotificationRequest request) Authorize a request to ExportNotifications.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke ExportNotifications
-
onMessageReceivedTerminationNotification
void onMessageReceivedTerminationNotification(AuthContext authContext, TerminationNotificationRequest request) Authorize a request to TerminationNotification.- Parameters:
authContext
- the authentication context of the requestrequest
- the request to authorize- Throws:
io.grpc.StatusRuntimeException
- if the user is not authorized to invoke TerminationNotification
-