|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator<com.trilead.ssh2.Connection,SSHUserPassword>
com.cloudbees.jenkins.plugins.sshcredentials.impl.TrileadSSHPasswordAuthenticator
public class TrileadSSHPasswordAuthenticator
Does password auth with a Connection.
| Nested Class Summary | |
|---|---|
static class |
TrileadSSHPasswordAuthenticator.Factory
|
| Nested classes/interfaces inherited from class com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator |
|---|
SSHAuthenticator.Mode |
| Constructor Summary | |
|---|---|
TrileadSSHPasswordAuthenticator(com.trilead.ssh2.Connection connection,
SSHUserPassword user)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
canAuthenticate()
Returns true if the bound connection is in a state where authentication can be tried using the
supplied credentials. |
protected boolean |
doAuthenticate()
SPI for authenticating the bound connection using the supplied credentials. |
| Methods inherited from class com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator |
|---|
authenticate, authenticate, filter, getAuthenticationMode, getConnection, getListener, getUser, isAuthenticated, isSupported, newInstance, setListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrileadSSHPasswordAuthenticator(com.trilead.ssh2.Connection connection,
SSHUserPassword user)
connection - the connection we will be authenticating.| Method Detail |
|---|
public boolean canAuthenticate()
true if the bound connection is in a state where authentication can be tried using the
supplied credentials.
Subclasses can override this if they can tell whether it is possible to make an authentication attempt, default
implementation is one-shot always.
canAuthenticate in class SSHAuthenticator<com.trilead.ssh2.Connection,SSHUserPassword>true if the bound connection is in a state where authentication can be tried using the
supplied credentials.protected boolean doAuthenticate()
SSHAuthenticator.getListener()
before this method returns with false. This helps an user better understand
what is tried and failing. Logging can be used in addition to this to capture further details.
(in contrast, please avoid reporting a success to the listener to improve S/N ratio)
doAuthenticate in class SSHAuthenticator<com.trilead.ssh2.Connection,SSHUserPassword>true if and only if authentication was successful.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||