Package org.jenkinsci.plugins.jsch
Class JSchSSHPasswordAuthenticator
java.lang.Object
com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator<JSchConnector,com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
org.jenkinsci.plugins.jsch.JSchSSHPasswordAuthenticator
public class JSchSSHPasswordAuthenticator
extends com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator<JSchConnector,com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
- Since:
- 0.1.54.0
- Author:
- stephenc
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator
com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.Mode
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JSchSSHPasswordAuthenticator
(JSchConnector connection, com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials user) protected
JSchSSHPasswordAuthenticator
(JSchConnector connection, com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials user, String username) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected boolean
com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.Mode
Methods inherited from class com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator
authenticate, authenticate, authenticateOrFail, filter, getConnection, getListener, getPrivateKeys, getUser, getUsername, isAuthenticated, isSupported, matcher, matcher, newInstance, newInstance, newInstance, setListener
-
Constructor Details
-
JSchSSHPasswordAuthenticator
protected JSchSSHPasswordAuthenticator(@NonNull JSchConnector connection, @NonNull com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials user) -
JSchSSHPasswordAuthenticator
protected JSchSSHPasswordAuthenticator(@NonNull JSchConnector connection, @NonNull com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials user, @CheckForNull String username)
-
-
Method Details
-
getAuthenticationMode
@NonNull public com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator.Mode getAuthenticationMode()- Overrides:
getAuthenticationMode
in classcom.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator<JSchConnector,
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
-
canAuthenticate
public boolean canAuthenticate()- Overrides:
canAuthenticate
in classcom.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator<JSchConnector,
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
-
doAuthenticate
protected boolean doAuthenticate()- Specified by:
doAuthenticate
in classcom.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator<JSchConnector,
com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
-