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

      void onMessageReceivedNewSession(AuthContext authContext, HandshakeRequest request)
      Authorize a request to NewSession.
      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 NewSession
    • onMessageReceivedRefreshSessionToken

      void onMessageReceivedRefreshSessionToken(AuthContext authContext, HandshakeRequest request)
      Authorize a request to RefreshSessionToken.
      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 RefreshSessionToken
    • 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