Package com.sshtools.client
Class KeyPairAuthenticator
java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.client.SimpleClientAuthenticator
com.sshtools.client.PublicKeyAuthenticator
com.sshtools.client.KeyPairAuthenticator
- All Implemented Interfaces:
ClientAuthenticator
,com.sshtools.common.ssh.RequestFuture
Implements public key authentication, taking a com.sshtools.publickey.SshKeyPair object as the source private key.
-
Field Summary
Fields inherited from class com.sshtools.client.PublicKeyAuthenticator
SSH_MSG_USERAUTH_PK_OK
-
Constructor Summary
ConstructorsConstructorDescriptionKeyPairAuthenticator
(com.sshtools.common.ssh.components.SshKeyPair pair) KeyPairAuthenticator
(com.sshtools.common.ssh.components.SshKeyPair... identities) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.sshtools.common.ssh.components.SshKeyPair
protected com.sshtools.common.ssh.components.SshPublicKey
protected boolean
Methods inherited from class com.sshtools.client.PublicKeyAuthenticator
authenticate, getName, getSignatureGenerator, onStartAuthentication, processMessage, sign
Methods inherited from class com.sshtools.client.SimpleClientAuthenticator
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, success, success
Methods inherited from class com.sshtools.common.ssh.AbstractRequestFuture
addFutureListener, done, isDone, isSuccess, waitFor, waitForever
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sshtools.client.ClientAuthenticator
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, success, success
Methods inherited from interface com.sshtools.common.ssh.RequestFuture
addFutureListener, isDone, isDoneAndSuccess, isSuccess, waitFor, waitForever
-
Constructor Details
-
KeyPairAuthenticator
public KeyPairAuthenticator(com.sshtools.common.ssh.components.SshKeyPair pair) -
KeyPairAuthenticator
public KeyPairAuthenticator(com.sshtools.common.ssh.components.SshKeyPair... identities)
-
-
Method Details
-
getNextKey
protected com.sshtools.common.ssh.components.SshPublicKey getNextKey()- Specified by:
getNextKey
in classPublicKeyAuthenticator
-
getAuthenticatingKey
protected com.sshtools.common.ssh.components.SshKeyPair getAuthenticatingKey()- Specified by:
getAuthenticatingKey
in classPublicKeyAuthenticator
-
hasCredentialsRemaining
protected boolean hasCredentialsRemaining()- Specified by:
hasCredentialsRemaining
in classPublicKeyAuthenticator
-