|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator<JSchConnector,SSHUserPrivateKey>
com.cloudbees.jenkins.plugins.sshcredentials.impl.JSchSSHPublicKeyAuthenticator
public class JSchSSHPublicKeyAuthenticator
| Nested Class Summary | |
|---|---|
static class |
JSchSSHPublicKeyAuthenticator.Factory
|
| Nested classes/interfaces inherited from class com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator |
|---|
SSHAuthenticator.Mode |
| Constructor Summary | |
|---|---|
JSchSSHPublicKeyAuthenticator(JSchConnector connector,
SSHUserPrivateKey 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. |
SSHAuthenticator.Mode |
getAuthenticationMode()
Returns the mode of authentication that this SSHAuthenticator supports. |
| Methods inherited from class com.cloudbees.jenkins.plugins.sshcredentials.SSHAuthenticator |
|---|
authenticate, filter, getConnection, getUser, isAuthenticated, isSupported, newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JSchSSHPublicKeyAuthenticator(JSchConnector connector,
SSHUserPrivateKey user)
connector - 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<JSchConnector,SSHUserPrivateKey>true if the bound connection is in a state where authentication can be tried using the
supplied credentials.protected boolean doAuthenticate()
doAuthenticate in class SSHAuthenticator<JSchConnector,SSHUserPrivateKey>true if and only if authentication was successful.@NonNull public SSHAuthenticator.Mode getAuthenticationMode()
SSHAuthenticatorSSHAuthenticator supports.
getAuthenticationMode in class SSHAuthenticator<JSchConnector,SSHUserPrivateKey>SSHAuthenticator supports.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||