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
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.voidonMessageReceivedCloseSession(AuthContext authContext, HandshakeRequest request) Authorize a request to CloseSession.voidonMessageReceivedExportFromTicket(AuthContext authContext, ExportRequest request) Authorize a request to ExportFromTicket.voidonMessageReceivedExportNotifications(AuthContext authContext, ExportNotificationRequest request) Authorize a request to ExportNotifications.voidonMessageReceivedNewSession(AuthContext authContext, HandshakeRequest request) Authorize a request to NewSession.voidonMessageReceivedPublishFromTicket(AuthContext authContext, PublishRequest request) Authorize a request to PublishFromTicket.voidonMessageReceivedRefreshSessionToken(AuthContext authContext, HandshakeRequest request) Authorize a request to RefreshSessionToken.voidonMessageReceivedRelease(AuthContext authContext, ReleaseRequest request) Authorize a request to Release.voidonMessageReceivedTerminationNotification(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:
interceptin 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
-