/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
}
throws RemoteException {
}
return "Hello World!";
}
// Get a remote stub for this RMI object
//
return stub;
}
}
public class HelloClient {
// "obj" is the identifier that we'll use to refer
// to the remote object that implements the "Hello"
// interface
}
}
public ClientFactory() {
super();
}
}
}
public ServerFactory() {
super();
}
boolean need) {
}
boolean need) {
}
port + ")");
return super.createServerSocket(port);
}
}
switch (test) {
case 1: /* default constructor - default config */
try {
0,
new ClientFactory(),
new ServerFactory());
} catch (Exception e) {
}
break;
case 2: /* non-default constructor - default config */
try {
0,
new ClientFactory(),
new ServerFactory(null,
null,
false));
} catch (Exception e) {
}
break;
case 3: /* needClientAuth=true */
try {
0,
new ClientFactory(),
new ServerFactory(null,
null,
null,
true));
} catch (Exception e) {
}
break;
case 4: /* server side dummy_ciphersuite */
try {
0,
new ClientFactory(),
new String[] {"dummy_ciphersuite"},
null,
false));
} catch (Exception e) {
}
break;
case 5: /* server side dummy_protocol */
try {
0,
new ClientFactory(),
new ServerFactory(null,
new String[] {"dummy_protocol"},
false));
} catch (Exception e) {
}
break;
case 6: /* client side dummy_ciphersuite */
try {
"dummy_ciphersuite");
0,
new ClientFactory(),
new ServerFactory());
} catch (Exception e) {
}
break;
case 7: /* client side dummy_protocol */
try {
"dummy_protocol");
0,
new ClientFactory(),
new ServerFactory());
} catch (Exception e) {
}
break;
default:
throw new IllegalArgumentException("invalid test number");
}
}
// Set keystore properties (server-side)
//
// Set truststore properties (client-side)
//
// Run test
//
}
}