Adding UI extensibility
[aai/sparky-be.git] / src / main / java / org / onap / aai / sparky / util / KeystoreBuilder.java
index d3ae421..05ba3d2 100644 (file)
@@ -110,20 +110,6 @@ public class KeystoreBuilder {
 
   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.
    *
@@ -209,7 +195,7 @@ public class KeystoreBuilder {
       } else {
         System.out.println("keystore file doesn't exist, preloading new file with jssecacerts");
       }
-      password = keystorePassword;
+      password = "changeit";
 
     }
 
@@ -260,8 +246,8 @@ public class KeystoreBuilder {
   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 {
@@ -272,8 +258,6 @@ public class KeystoreBuilder {
       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);
     }
 
@@ -523,6 +507,8 @@ public class KeystoreBuilder {
    */
   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