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.default voidonMessageReceivedNewSession(AuthContext authContext, HandshakeRequest request) Deprecated, for removal: This API element is subject to removal in a future version.NewSession is no longer an RPC; implementations may remove their overridesvoidonMessageReceivedPublishFromTicket(AuthContext authContext, PublishRequest request) Authorize a request to PublishFromTicket.default voidonMessageReceivedRefreshSessionToken(AuthContext authContext, HandshakeRequest request) Deprecated, for removal: This API element is subject to removal in a future version.RefreshSessionToken is no longer an RPC; implementations may remove their overridesvoidonMessageReceivedRelease(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
@Deprecated(forRemoval=true) default void onMessageReceivedNewSession(AuthContext authContext, HandshakeRequest request) Deprecated, for removal: This API element is subject to removal in a future version.NewSession is no longer an RPC; implementations may remove their overridesNever called; the SessionService has no NewSession RPC.- Parameters:
authContext- the authentication context of the requestrequest- the request to authorize
-
onMessageReceivedRefreshSessionToken
@Deprecated(forRemoval=true) default void onMessageReceivedRefreshSessionToken(AuthContext authContext, HandshakeRequest request) Deprecated, for removal: This API element is subject to removal in a future version.RefreshSessionToken is no longer an RPC; implementations may remove their overridesNever called; the SessionService has no RefreshSessionToken RPC.- Parameters:
authContext- the authentication context of the requestrequest- the request to authorize
-
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
-