Class AuthHandler

java.lang.Object
com.cloud.clientpak.handlers.AuthHandler

public class AuthHandler extends Object
Authorization message listener class. Defines methods for work with an authorization message.
  • Field Details

  • Constructor Details

    • AuthHandler

      public AuthHandler(Controller controller)
      The constructor saves a reference to the application controller.
      Parameters:
      controller - application controller.
  • Method Details

    • authHandle

      public void authHandle(io.netty.channel.ChannelHandlerContext ctx, Object msg)
      If this method is called, it means that the server processed the authorization request and returned the result in AuthMessage.
      Parameters:
      ctx - channel context.
      msg - message object.
    • openCloudWindow

      public void openCloudWindow(AuthMessage authMsg)
      Opens the Cloud GUI panel, loads a list of objects describing files on the server FileInfo.
      Parameters:
      authMsg - message object.
    • authNo

      public void authNo()
      Called when the server refuses authorization.