Interface BackendServerCommunicator


public interface BackendServerCommunicator
Interface for send data to from a proxy server to a backend server
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Represents a message sent between proxy and backend servers
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The standard channel name for the plugin channel
    static final String
    The standard namespace name for the plugin channel
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sends a signal to backend server to hide the QR-code for the user.
    void
    Sends the authentication status to the backend server.
    void
    sendDisabled(boolean disabled)
    Sends the checks-disabled status to the backend server.
    void
    sendDisabled(String servername, boolean disabled)
    Sends the checks-disabled status to the backend server.
    void
    Sends the QR-code to the backend server which will then be shown to the user on the backend server.
    void
    sendRequiredStatus(UserIdentity user, boolean requiredSet)
    Sends the gs-required status to the backend server.
  • Field Details

  • Method Details

    • sendAuthStatus

      void sendAuthStatus(UserIdentity user, GSAuthUserAuthenticationStatus message)
      Sends the authentication status to the backend server.
      Parameters:
      user - the UserIdentity of the user in question
      message - the data to send
    • sendRequiredStatus

      void sendRequiredStatus(UserIdentity user, boolean requiredSet)
      Sends the gs-required status to the backend server.
      Parameters:
      user - the UserIdentity of the user in question
      requiredSet - whether the user has a required group set
    • sendQR

      void sendQR(UserIdentity user, String qr)
      Sends the QR-code to the backend server which will then be shown to the user on the backend server.
      Parameters:
      user - the UserIdentity of the user in question
      qr - the QR-Code image as data-uri representation
    • hideQR

      void hideQR(UserIdentity user)
      Sends a signal to backend server to hide the QR-code for the user.
      Parameters:
      user - the UserIdentity of the user in question
    • sendDisabled

      void sendDisabled(boolean disabled)
      Sends the checks-disabled status to the backend server.
      Parameters:
      disabled - whether checks are enabled
    • sendDisabled

      void sendDisabled(String servername, boolean disabled)
      Sends the checks-disabled status to the backend server.
      Parameters:
      servername - the of the server to send the checks-disabled status to
      disabled - whether checks are enabled