TLS support - configurable passwords
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / TlsConfigurationImpl.java
index d0bafdd49343b904183198616a5af0b30fb64c1f..4d6fa87d7ef469393251fa92264e957a6e2ef2f3 100644 (file)
@@ -12,8 +12,8 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.K
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.PathType;\r
 \r
 /**\r
+ * Class is used only for testing purposes - passwords are hardcoded\r
  * @author michal.polkorab\r
- * \r
  */\r
 public class TlsConfigurationImpl implements TlsConfiguration {\r
 \r
@@ -73,4 +73,19 @@ public class TlsConfigurationImpl implements TlsConfiguration {
     public PathType getTlsTruststorePathType() {\r
         return truststorePathType;\r
     }\r
+\r
+    @Override\r
+    public String getKeystorePassword() {\r
+        return "opendaylight";\r
+    }\r
+\r
+    @Override\r
+    public String getCertificatePassword() {\r
+        return "opendaylight";\r
+    }\r
+\r
+    @Override\r
+    public String getTruststorePassword() {\r
+        return "opendaylight";\r
+    }\r
 }\r