From 505e6198d46d2c5bdd4625e5eea66f4c1b47fd8c Mon Sep 17 00:00:00 2001 From: Valentin Martinet Date: Thu, 11 Feb 2010 17:19:30 +0000 Subject: Forgot to remove useless code. --- .../TestOperationSetAdHocMultiUserChatMsnImpl.java | 83 ---------------------- 1 file changed, 83 deletions(-) (limited to 'test') diff --git a/test/net/java/sip/communicator/slick/protocol/msn/TestOperationSetAdHocMultiUserChatMsnImpl.java b/test/net/java/sip/communicator/slick/protocol/msn/TestOperationSetAdHocMultiUserChatMsnImpl.java index ff6d9f3..a22ffe2 100644 --- a/test/net/java/sip/communicator/slick/protocol/msn/TestOperationSetAdHocMultiUserChatMsnImpl.java +++ b/test/net/java/sip/communicator/slick/protocol/msn/TestOperationSetAdHocMultiUserChatMsnImpl.java @@ -156,87 +156,4 @@ extends TestOperationSetAdHocMultiUserChat "An implementation of the service must provide an " + "implementation of at least one of the PresenceOperationSets"); } - - /** - * A very simple straight forward implementation of a security authority - * that would always return the same password (the one specified upon - * construction) when asked for credentials. - */ - public class SecurityAuthorityImpl - implements SecurityAuthority - { - /** - * The password to return when asked for credentials - */ - private char[] passwd = null; - - private boolean isUserNameEditable = false; - - /** - * Creates an instance of this class that would always return "passwd" - * when asked for credentials. - * - * @param passwd the password that this class should return when - * asked for credentials. - */ - public SecurityAuthorityImpl(char[] passwd) - { - this.passwd = passwd; - } - - /** - * Returns a Credentials object associated with the specified realm. - *

- * @param realm The realm that the credentials are needed for. - * @param defaultValues the values to propose the user by default - * @param reasonCode the reason for which we're obtaining the - * credentials. - * @return The credentials associated with the specified realm or null - * if none could be obtained. - */ - public UserCredentials obtainCredentials(String realm, - UserCredentials defaultValues, - int reasonCode) - { - return obtainCredentials(realm, defaultValues); - } - - /** - * Returns a Credentials object associated with the specified realm. - *

- * @param realm The realm that the credentials are needed for. - * @param defaultValues the values to propose the user by default - * @return The credentials associated with the specified realm or null - * if none could be obtained. - */ - public UserCredentials obtainCredentials(String realm, - UserCredentials defaultValues) - { - defaultValues.setPassword(passwd); - return defaultValues; - } - - /** - * Sets the userNameEditable property, which should indicate if the - * user name could be changed by user or not. - * - * @param isUserNameEditable indicates if the user name could be changed - */ - public void setUserNameEditable(boolean isUserNameEditable) - { - this.isUserNameEditable = isUserNameEditable; - } - - /** - * Indicates if the user name is currently editable, i.e. could be changed - * by user or not. - * - * @return true if the user name could be changed, - * false - otherwise. - */ - public boolean isUserNameEditable() - { - return isUserNameEditable; - } - } } -- cgit v1.1