Package com.sshtools.server.callback
Class MutualCallbackAuthenticator
java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.client.SimpleClientAuthenticator
com.sshtools.server.callback.MutualCallbackAuthenticator
- All Implemented Interfaces:
ClientAuthenticator
,com.sshtools.common.ssh.RequestFuture
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMutualCallbackAuthenticator
(com.sshtools.common.auth.MutualKeyAuthenticatonStore authenticationStore) -
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(TransportProtocolClient transport, String username) Start the authenticationgetName()
The authentication mechanism name/.boolean
processMessage
(com.sshtools.common.util.ByteArrayReader msg) Process an authentication message.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.common.ssh.RequestFuture
addFutureListener, isDone, isDoneAndSuccess, isSuccess, waitFor, waitForever
-
Field Details
-
SSH_MSG_USERAUTH_SIGNED_CHALLENGE
public static final int SSH_MSG_USERAUTH_SIGNED_CHALLENGE- See Also:
-
MUTUAL_KEY_AUTHENTICATION
- See Also:
-
-
Constructor Details
-
MutualCallbackAuthenticator
public MutualCallbackAuthenticator(com.sshtools.common.auth.MutualKeyAuthenticatonStore authenticationStore)
-
-
Method Details
-
getName
Description copied from interface:ClientAuthenticator
The authentication mechanism name/.- Returns:
-
authenticate
public void authenticate(TransportProtocolClient transport, String username) throws IOException, com.sshtools.common.ssh.SshException Description copied from interface:ClientAuthenticator
Start the authentication- Throws:
IOException
com.sshtools.common.ssh.SshException
-
processMessage
Description copied from interface:ClientAuthenticator
Process an authentication message.- Specified by:
processMessage
in interfaceClientAuthenticator
- Overrides:
processMessage
in classSimpleClientAuthenticator
- Returns:
- Throws:
IOException
-