public class ExternalKeyAuthenticator extends SimpleClientAuthenticator implements ClientAuthenticator, SignatureGenerator
| Modifier and Type | Field and Description |
|---|---|
static int |
SSH_MSG_USERAUTH_PK_OK |
| Constructor and Description |
|---|
ExternalKeyAuthenticator() |
ExternalKeyAuthenticator(SignatureGenerator signatureGenerator) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(TransportProtocolClient transport,
java.lang.String username)
Start the authentication
|
java.lang.String |
getName()
The authentication mechanism name/.
|
java.util.Collection<SshPublicKey> |
getPublicKeys() |
SignatureGenerator |
getSignatureGenerator(Connection<SshClientContext> con) |
protected void |
onStartAuthentication(Connection<SshClientContext> con) |
boolean |
processMessage(com.sshtools.common.util.ByteArrayReader msg)
Process an authentication message.
|
byte[] |
sign(SshPublicKey key,
java.lang.String signingAlgorithm,
byte[] data) |
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, success, successaddFutureListener, done, isDone, isSuccess, waitFor, waitForeverclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, success, successaddFutureListener, isDone, isSuccess, waitFor, waitForeverpublic static final int SSH_MSG_USERAUTH_PK_OK
public ExternalKeyAuthenticator(SignatureGenerator signatureGenerator)
public ExternalKeyAuthenticator()
public void authenticate(TransportProtocolClient transport, java.lang.String username) throws SshException, java.io.IOException
ClientAuthenticatorauthenticate in interface ClientAuthenticatorSshExceptionjava.io.IOExceptionprotected void onStartAuthentication(Connection<SshClientContext> con)
public boolean processMessage(com.sshtools.common.util.ByteArrayReader msg)
throws java.io.IOException
ClientAuthenticatorprocessMessage in interface ClientAuthenticatorprocessMessage in class SimpleClientAuthenticatorjava.io.IOExceptionpublic SignatureGenerator getSignatureGenerator(Connection<SshClientContext> con)
public byte[] sign(SshPublicKey key, java.lang.String signingAlgorithm, byte[] data) throws SshException
sign in interface SignatureGeneratorSshExceptionpublic java.lang.String getName()
ClientAuthenticatorgetName in interface ClientAuthenticatorpublic java.util.Collection<SshPublicKey> getPublicKeys() throws java.io.IOException
getPublicKeys in interface SignatureGeneratorjava.io.IOExceptionCopyright © 2022. All rights reserved.