diff --git a/src/net/java/sip/communicator/impl/gui/main/login/SecurityAuthorityImpl.java b/src/net/java/sip/communicator/impl/gui/main/login/SecurityAuthorityImpl.java
index 3d9db3e78..03aa62b85 100644
--- a/src/net/java/sip/communicator/impl/gui/main/login/SecurityAuthorityImpl.java
+++ b/src/net/java/sip/communicator/impl/gui/main/login/SecurityAuthorityImpl.java
@@ -12,17 +12,17 @@
/**
* The SecurityAuthorityImpl is an implementation of the
* SecurityAuthority interface.
- *
+ *
* @author Yana Stamcheva
*/
public class SecurityAuthorityImpl implements SecurityAuthority {
private MainFrame mainFrame;
-
+
private ProtocolProviderService protocolProvider;
-
+
/**
- * Creates an instance of SecurityAuthorityImpl.
+ * Creates an instance of SecurityAuthorityImpl.
* @param mainFrame The parent window of the AuthenticationWIndow
* created in this class.
* @param protocolProvider The ProtocolProviderService for this
@@ -33,7 +33,7 @@ public SecurityAuthorityImpl(MainFrame mainFrame,
this.mainFrame = mainFrame;
this.protocolProvider = protocolProvider;
}
-
+
/**
* Implements the SecurityAuthority.obtainCredentials method.
* Creates and show an AuthenticationWindow, where user could enter
@@ -41,12 +41,12 @@ public SecurityAuthorityImpl(MainFrame mainFrame,
*/
public UserCredentials obtainCredentials(String realm,
UserCredentials userCredentials) {
-
+
AuthenticationWindow loginWindow = new AuthenticationWindow(
mainFrame, protocolProvider, realm, userCredentials);
-
- loginWindow.showWindow();
-
+
+ loginWindow.setVisible(true);
+
return userCredentials;
- }
+ }
}