diff --git a/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java b/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java
index 7db86a31c..037b90b12 100644
--- a/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java
+++ b/src/net/java/sip/communicator/util/swing/AuthenticationWindow.java
@@ -170,6 +170,32 @@ public AuthenticationWindow(String userName,
this.infoTextArea.setText(errorMessage);
}
+ /**
+ * Creates an instance of the LoginWindow.
+ *
+ * @param userName the user name to set by default
+ * @param password the password to set by default
+ * @param server the server name this authentication window is about
+ * @param isUserNameEditable indicates if the user name should be editable
+ * by the user or not
+ * @param isRememberPassword indicates if the password should be rememberd
+ * @param icon the icon displayed on the left of the authentication window
+ * @param errorMessage an error message explaining a reason for opening
+ * the authentication dialog (when a wrong password was provided, etc.)
+ */
+ public AuthenticationWindow(String userName,
+ char[] password,
+ String server,
+ boolean isUserNameEditable,
+ boolean isRememberPassword,
+ ImageIcon icon,
+ String errorMessage)
+ {
+ this(userName, password, server, isUserNameEditable, icon, errorMessage);
+
+ this.isRememberPassword = isRememberPassword;
+ }
+
/**
* Creates an instance of the LoginWindow.
*