2626import com .cloudbees .jenkins .plugins .sshcredentials .SSHAuthenticator ;
2727import com .cloudbees .jenkins .plugins .sshcredentials .SSHAuthenticatorFactory ;
2828import com .cloudbees .jenkins .plugins .sshcredentials .impl .BasicSSHUserPassword ;
29- import com .cloudbees .jenkins .plugins .sshcredentials .impl .TrileadSSHPasswordAuthenticator ;
3029import com .cloudbees .plugins .credentials .CredentialsScope ;
3130import com .cloudbees .plugins .credentials .common .StandardUsernamePasswordCredentials ;
3231import com .trilead .ssh2 .Connection ;
@@ -83,8 +82,8 @@ public void tearDown() {
8382 public void dontTestKeyboardInteractive () throws Exception {
8483 connection = new Connection ("localhost" );
8584 connection .connect (new NoVerifier ());
86- com . cloudbees . jenkins . plugins . sshcredentials . impl . TrileadSSHPasswordAuthenticator instance =
87- new com . cloudbees . jenkins . plugins . sshcredentials . impl . TrileadSSHPasswordAuthenticator (connection , new BasicSSHUserPassword (CredentialsScope .SYSTEM ,
85+ TrileadSSHPasswordAuthenticator instance =
86+ new TrileadSSHPasswordAuthenticator (connection , new BasicSSHUserPassword (CredentialsScope .SYSTEM ,
8887 null , "...." , // <---- put your username here
8988 "...." , // <---- put your password here
9089 null ));
@@ -105,7 +104,7 @@ public void testPassword() throws Exception {
105104 int port = (Integer )invoke (sshd , "getPort" , null , null );
106105 connection = new Connection ("localhost" , port );
107106 connection .connect (new NoVerifier ());
108- com . cloudbees . jenkins . plugins . sshcredentials . impl . TrileadSSHPasswordAuthenticator instance =
107+ TrileadSSHPasswordAuthenticator instance =
109108 new TrileadSSHPasswordAuthenticator (connection , user );
110109 assertThat (instance .getAuthenticationMode (), is (SSHAuthenticator .Mode .AFTER_CONNECT ));
111110 assertThat (instance .canAuthenticate (), is (true ));
0 commit comments