Class LoginDialog

    • Constructor Detail

      • LoginDialog

        public LoginDialog​(JFrame parent,
                           ApplicationTrustManager trustManager,
                           int timeout)
        Constructor of the LoginDialog.
        Parameters:
        parent - the parent frame for this dialog.
        trustManager - the trust manager to be used for the secure connections.
        timeout - the timeout to establish the connection in milliseconds. Use 0 to express no timeout.
    • Method Detail

      • isCanceled

        public boolean isCanceled()
        Returns true if the user clicked on cancel and false otherwise.
        Returns:
        true if the user clicked on cancel and false otherwise.
      • setVisible

        public void setVisible​(boolean visible)
        Overrides:
        setVisible in class Dialog
      • getHostName

        public String getHostName()
        Returns the Host Name as is referenced in other servers.
        Returns:
        the Host Name as is referenced in other servers.
      • getAdministratorUid

        public String getAdministratorUid()
        Returns the Administrator UID provided by the user.
        Returns:
        the Administrator UID provided by the user.
      • getAdministratorPwd

        public String getAdministratorPwd()
        Returns the Administrator password provided by the user.
        Returns:
        the Administrator password provided by the user.
      • getConnection

        public ConnectionWrapper getConnection()
        Returns the connection we got with the provided authentication.
        Returns:
        the connection
      • main

        public static void main​(String[] args)
        Method written for testing purposes.
        Parameters:
        args - the arguments to be passed to the test program.