} else if (url.contains("MutualCert")) {
ep.getProperties().put(SecurityConstants.ENCRYPT_PROPERTIES + ".sct", "etc/bob.properties");
ep.getProperties().put(SecurityConstants.SIGNATURE_PROPERTIES + ".sct", "etc/alice.properties");
ep.getProperties().put(SecurityConstants.CALLBACK_HANDLER, new KeystorePasswordCallback());
}
ep.publish(url);
}
public static void main(String args[]) throws Exception {
new Server("http://localhost:9001/");
System.out.println("Server ready...");