private List<EndPoint> endpoints = new ArrayList<EndPoint>();
- /**
- * @return the endpoints
- */
- public List<EndPoint> getEndpoints() {
- return endpoints;
- }
-
- /**
- * @param endpoints the endpoints to set
- */
- public void setEndpoints(List<EndPoint> endpoints) {
- this.endpoints = endpoints;
- }
-
/**
* Initialize end points list.
*
} else {
System.out.println("keystore file doesn't exist, preloading new file with jssecacerts");
}
- password = keystorePassword;
+ password = "changeit";
}
private X509Certificate[] getCertificateChainForRemoteEndpoint(String hostname, int port)
throws UnknownHostException, IOException {
- System.out.println("Opening connection to " + hostname + ":" + port + "..");
- SSLSocket socket = (SSLSocket) sslSocketFactory.createSocket(hostname, port);
+ System.out.println("Opening connection to localhost:8442..");
+ SSLSocket socket = (SSLSocket) sslSocketFactory.createSocket("aai-int1.dev.att.com", 8440);
socket.setSoTimeout(10000);
try {
System.exit(0);
} catch (SSLException exc) {
System.out.println("\nCaught SSL exception, we are not authorized to access this server yet");
- throw new SSLException(
- "\nCaught SSL exception, we are not authorized to access this server yet");
// e.printStackTrace(System.out);
}
*/
public static void main(String[] args) throws Exception {
+ // String endpointList = "aai-int1.test.att.com:8440;aai-int1.dev.att.com:8442";
+
/*
* Examples: localhost:8440;localhost:8442 d:\1\adhoc_keystore.jks aaiDomain2 false
* localhost:8440;localhost:8442 d:\1\adhoc_keystore.jks aaiDomain2 true