public class ExternalKeyAuthenticator extends SimpleClientAuthenticator implements ClientAuthenticator, com.sshtools.common.publickey.SignatureGenerator
Modifier and Type | Field and Description |
---|---|
static int |
SSH_MSG_USERAUTH_PK_OK |
Constructor and Description |
---|
ExternalKeyAuthenticator() |
ExternalKeyAuthenticator(com.sshtools.common.publickey.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<com.sshtools.common.ssh.components.SshPublicKey> |
getPublicKeys() |
com.sshtools.common.publickey.SignatureGenerator |
getSignatureGenerator(com.sshtools.synergy.ssh.Connection<SshClientContext> con) |
protected void |
onStartAuthentication(com.sshtools.synergy.ssh.Connection<SshClientContext> con) |
boolean |
processMessage(com.sshtools.common.util.ByteArrayReader msg)
Process an authentication message.
|
byte[] |
sign(com.sshtools.common.ssh.components.SshPublicKey key,
java.lang.String signingAlgorithm,
byte[] data) |
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, success, success
addFutureListener, done, isDone, isSuccess, waitFor, waitForever
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, success, success
public static final int SSH_MSG_USERAUTH_PK_OK
public ExternalKeyAuthenticator(com.sshtools.common.publickey.SignatureGenerator signatureGenerator)
public ExternalKeyAuthenticator()
public void authenticate(TransportProtocolClient transport, java.lang.String username) throws com.sshtools.common.ssh.SshException, java.io.IOException
ClientAuthenticator
authenticate
in interface ClientAuthenticator
com.sshtools.common.ssh.SshException
java.io.IOException
protected void onStartAuthentication(com.sshtools.synergy.ssh.Connection<SshClientContext> con)
public boolean processMessage(com.sshtools.common.util.ByteArrayReader msg) throws java.io.IOException
ClientAuthenticator
processMessage
in interface ClientAuthenticator
processMessage
in class SimpleClientAuthenticator
java.io.IOException
public com.sshtools.common.publickey.SignatureGenerator getSignatureGenerator(com.sshtools.synergy.ssh.Connection<SshClientContext> con)
public byte[] sign(com.sshtools.common.ssh.components.SshPublicKey key, java.lang.String signingAlgorithm, byte[] data) throws com.sshtools.common.ssh.SshException
sign
in interface com.sshtools.common.publickey.SignatureGenerator
com.sshtools.common.ssh.SshException
public java.lang.String getName()
ClientAuthenticator
getName
in interface ClientAuthenticator
public java.util.Collection<com.sshtools.common.ssh.components.SshPublicKey> getPublicKeys() throws java.io.IOException
getPublicKeys
in interface com.sshtools.common.publickey.SignatureGenerator
java.io.IOException
Copyright © 2024. All rights reserved.