Skip to content
Permalink
Browse files
[FIXED JENKINS-19104] Restoring deprecated constructor to avoid NoSuc…
…hMethodError when not all plugins were upgraded in synch.
  • Loading branch information
jglick committed Aug 8, 2013
1 parent 0fccbed commit ab2a63259d4e2f8138c8d796095b8043e1febcff
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/com/cloudbees/jenkins/plugins/sshcredentials/SSHAuthenticator.java
@@ -167,6 +167,12 @@ protected boolean doAuthenticate() {
};
}

/** @deprecated Use {@link #newInstance(Object, StandardUsernameCredentials)} instead. */
@Deprecated
public static SSHAuthenticator<Object,StandardUsernameCredentials> newInstance(Object connection, SSHUser user) throws InterruptedException, IOException {
return newInstance(connection, (StandardUsernameCredentials) user);
}

/**
* Returns {@code true} if and only if the supplied connection class and user class are supported by at least one
* factory.

0 comments on commit ab2a632

Please sign in to comment.