Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Cleanup root pom "name"."
[controller.git]
/
opendaylight
/
netconf
/
netconf-testtool
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
netconf
/
test
/
tool
/
AcceptingAuthProvider.java
diff --git
a/opendaylight/netconf/netconf-testtool/src/main/java/org/opendaylight/controller/netconf/test/tool/AcceptingAuthProvider.java
b/opendaylight/netconf/netconf-testtool/src/main/java/org/opendaylight/controller/netconf/test/tool/AcceptingAuthProvider.java
index 35f2345248f1ac30203d014e78e5283e8c66f82b..4721acf209055190d30b12c73b1d7e80898b953c 100644
(file)
--- a/
opendaylight/netconf/netconf-testtool/src/main/java/org/opendaylight/controller/netconf/test/tool/AcceptingAuthProvider.java
+++ b/
opendaylight/netconf/netconf-testtool/src/main/java/org/opendaylight/controller/netconf/test/tool/AcceptingAuthProvider.java
@@
-8,29
+8,13
@@
package org.opendaylight.controller.netconf.test.tool;
package org.opendaylight.controller.netconf.test.tool;
-import java.io.File;
-import java.io.IOException;
-import org.opendaylight.controller.netconf.ssh.authentication.AuthProvider;
-import org.opendaylight.controller.netconf.ssh.authentication.PEMGenerator;
+import org.opendaylight.controller.netconf.auth.AuthProvider;
class AcceptingAuthProvider implements AuthProvider {
class AcceptingAuthProvider implements AuthProvider {
- private final String privateKeyPEMString;
-
- public AcceptingAuthProvider() {
- try {
- this.privateKeyPEMString = PEMGenerator.readOrGeneratePK(new File("PK"));
- } catch (final IOException e) {
- throw new RuntimeException(e);
- }
- }
@Override
public synchronized boolean authenticated(final String username, final String password) {
return true;
}
@Override
public synchronized boolean authenticated(final String username, final String password) {
return true;
}
- @Override
- public char[] getPEMAsCharArray() {
- return privateKeyPEMString.toCharArray();
- }
}
}