Mass replace CRLF->LF
[openflowjava.git] / openflow-protocol-api / src / main / java / org / opendaylight / openflowjava / protocol / api / connection / TlsConfigurationImpl.java
index 4d6fa87d7ef469393251fa92264e957a6e2ef2f3..78a6c6b8c1804b0132a719884bca80706961114a 100644 (file)
@@ -1,91 +1,91 @@
-/*\r
- * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.\r
- *\r
- * This program and the accompanying materials are made available under the\r
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,\r
- * and is available at http://www.eclipse.org/legal/epl-v10.html\r
- */\r
-\r
-package org.opendaylight.openflowjava.protocol.api.connection;\r
-\r
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.KeystoreType;\r
-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
-public class TlsConfigurationImpl implements TlsConfiguration {\r
-\r
-    private KeystoreType trustStoreType;\r
-    private String trustStore;\r
-    private KeystoreType keyStoreType;\r
-    private String keyStore;\r
-    private PathType keystorePathType;\r
-    private PathType truststorePathType;\r
-\r
-    /**\r
-     * Default constructor\r
-     * @param trustStoreType JKS or PKCS12\r
-     * @param trustStore path to trustStore file\r
-     * @param trustStorePathType truststore path type (classpath or path)\r
-     * @param keyStoreType JKS or PKCS12\r
-     * @param keyStore path to keyStore file\r
-     * @param keyStorePathType keystore path type (classpath or path)\r
-     */\r
-    public TlsConfigurationImpl(KeystoreType trustStoreType, String trustStore,\r
-            PathType trustStorePathType, KeystoreType keyStoreType,\r
-            String keyStore, PathType keyStorePathType) {\r
-        this.trustStoreType = trustStoreType;\r
-        this.trustStore = trustStore;\r
-        this.truststorePathType = trustStorePathType;\r
-        this.keyStoreType = keyStoreType;\r
-        this.keyStore = keyStore;\r
-        this.keystorePathType = keyStorePathType;\r
-    }\r
-\r
-    @Override\r
-    public KeystoreType getTlsTruststoreType() {\r
-        return trustStoreType;\r
-    }\r
-\r
-    @Override\r
-    public String getTlsTruststore() {\r
-        return trustStore;\r
-    }\r
-\r
-    @Override\r
-    public KeystoreType getTlsKeystoreType() {\r
-        return keyStoreType;\r
-    }\r
-\r
-    @Override\r
-    public String getTlsKeystore() {\r
-        return keyStore;\r
-    }\r
-\r
-    @Override\r
-    public PathType getTlsKeystorePathType() {\r
-        return keystorePathType;\r
-    }\r
-\r
-    @Override\r
-    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
+/*
+ * Copyright (c) 2014 Pantheon Technologies s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+
+package org.opendaylight.openflowjava.protocol.api.connection;
+
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.KeystoreType;
+import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.config.rev140630.PathType;
+
+/**
+ * Class is used only for testing purposes - passwords are hardcoded
+ * @author michal.polkorab
+ */
+public class TlsConfigurationImpl implements TlsConfiguration {
+
+    private KeystoreType trustStoreType;
+    private String trustStore;
+    private KeystoreType keyStoreType;
+    private String keyStore;
+    private PathType keystorePathType;
+    private PathType truststorePathType;
+
+    /**
+     * Default constructor
+     * @param trustStoreType JKS or PKCS12
+     * @param trustStore path to trustStore file
+     * @param trustStorePathType truststore path type (classpath or path)
+     * @param keyStoreType JKS or PKCS12
+     * @param keyStore path to keyStore file
+     * @param keyStorePathType keystore path type (classpath or path)
+     */
+    public TlsConfigurationImpl(KeystoreType trustStoreType, String trustStore,
+            PathType trustStorePathType, KeystoreType keyStoreType,
+            String keyStore, PathType keyStorePathType) {
+        this.trustStoreType = trustStoreType;
+        this.trustStore = trustStore;
+        this.truststorePathType = trustStorePathType;
+        this.keyStoreType = keyStoreType;
+        this.keyStore = keyStore;
+        this.keystorePathType = keyStorePathType;
+    }
+
+    @Override
+    public KeystoreType getTlsTruststoreType() {
+        return trustStoreType;
+    }
+
+    @Override
+    public String getTlsTruststore() {
+        return trustStore;
+    }
+
+    @Override
+    public KeystoreType getTlsKeystoreType() {
+        return keyStoreType;
+    }
+
+    @Override
+    public String getTlsKeystore() {
+        return keyStore;
+    }
+
+    @Override
+    public PathType getTlsKeystorePathType() {
+        return keystorePathType;
+    }
+
+    @Override
+    public PathType getTlsTruststorePathType() {
+        return truststorePathType;
+    }
+
+    @Override
+    public String getKeystorePassword() {
+        return "opendaylight";
+    }
+
+    @Override
+    public String getCertificatePassword() {
+        return "opendaylight";
+    }
+
+    @Override
+    public String getTruststorePassword() {
+        return "opendaylight";
+    }
+}