connect netconf devices through ssh key
Change-Id: I1a0961ffffd33559f903ead0634dbb5492e9a154
diff --git a/protocols/netconf/api/src/main/java/org/onosproject/netconf/NetconfDeviceInfo.java b/protocols/netconf/api/src/main/java/org/onosproject/netconf/NetconfDeviceInfo.java
index 4c900ea..2468562 100644
--- a/protocols/netconf/api/src/main/java/org/onosproject/netconf/NetconfDeviceInfo.java
+++ b/protocols/netconf/api/src/main/java/org/onosproject/netconf/NetconfDeviceInfo.java
@@ -22,7 +22,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import java.io.File;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Objects;
@@ -39,7 +38,7 @@
private String password;
private IpAddress ipAddress;
private int port;
- private File keyFile;
+ private char[] key;
private DeviceId deviceId;
@@ -80,7 +79,7 @@
this.password = password;
this.ipAddress = ipAddress;
this.port = port;
- this.keyFile = new File(keyString);
+ this.key = keyString.toCharArray();
}
/**
@@ -120,12 +119,12 @@
}
/**
- * Exposes the keyFile of the controller.
+ * Exposes the key of the controller.
*
* @return int port address
*/
- public File getKeyFile() {
- return keyFile;
+ public char[] getKey() {
+ return key;
}
/**