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.
  • Method Details

    • intercept

      default io.grpc.ServerServiceDefinition intercept(SessionServiceGrpc.SessionServiceImplBase delegate)
      Wrap the real implementation with authorization checks.
      Specified by:
      intercept in interface ServiceAuthWiring<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 overrides
      Never called; the SessionService has no NewSession RPC.
      Parameters:
      authContext - the authentication context of the request
      request - 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 overrides
      Never called; the SessionService has no RefreshSessionToken RPC.
      Parameters:
      authContext - the authentication context of the request
      request - the request to authorize
    • onMessageReceivedCloseSession

      void onMessageReceivedCloseSession(AuthContext authContext, HandshakeRequest request)
      Authorize a request to CloseSession.
      Parameters:
      authContext - the authentication context of the request
      request - the request to authorize
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke CloseSession
    • onMessageReceivedRelease

      void onMessageReceivedRelease(AuthContext authContext, ReleaseRequest request)
      Authorize a request to Release.
      Parameters:
      authContext - the authentication context of the request
      request - the request to authorize
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke Release
    • onMessageReceivedExportFromTicket

      void onMessageReceivedExportFromTicket(AuthContext authContext, ExportRequest request)
      Authorize a request to ExportFromTicket.
      Parameters:
      authContext - the authentication context of the request
      request - the request to authorize
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke ExportFromTicket
    • onMessageReceivedPublishFromTicket

      void onMessageReceivedPublishFromTicket(AuthContext authContext, PublishRequest request)
      Authorize a request to PublishFromTicket.
      Parameters:
      authContext - the authentication context of the request
      request - 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 request
      request - 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 request
      request - the request to authorize
      Throws:
      io.grpc.StatusRuntimeException - if the user is not authorized to invoke TerminationNotification