public class Ssh2AgentAuthentication extends Ssh2PublicKeyAuthentication
authenticating, privatekey, publickeyCANCELLED, COMPLETE, FAILED, FURTHER_AUTHENTICATION_REQUIRED, PUBLIC_KEY_ACCEPTABLE| Constructor and Description |
|---|
Ssh2AgentAuthentication(SshAgentClient agent) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(AuthenticationProtocol authentication,
String servicename)
Perform the authentication according to the specification.
|
protected byte[] |
encodeSignature(byte[] signature) |
String |
getMethod()
The SSH authentication method name
|
SshAgentClient |
getSshAgentClient() |
String |
getUsername()
Get the username for this authentication attempt.
|
void |
setUsername(String username)
Set the username for this authentication attempt.
|
setSignatureGeneratorgetPrivateKey, getPublicKey, isAuthenticating, setAuthenticating, setPrivateKey, setPublicKeypublic Ssh2AgentAuthentication(SshAgentClient agent)
public String getMethod()
SshAuthenticationgetMethod in interface SshAuthenticationgetMethod in class PublicKeyAuthenticationpublic String getUsername()
SshAuthenticationgetUsername in interface SshAuthenticationgetUsername in class PublicKeyAuthenticationpublic void setUsername(String username)
SshAuthenticationsetUsername in interface SshAuthenticationsetUsername in class PublicKeyAuthenticationpublic SshAgentClient getSshAgentClient()
public void authenticate(AuthenticationProtocol authentication, String servicename) throws SshException, AuthenticationResult
AuthenticationClientauthenticate in interface AuthenticationClientauthenticate in class Ssh2PublicKeyAuthenticationAuthenticationResultSshExceptionprotected byte[] encodeSignature(byte[] signature)
throws IOException
encodeSignature in class Ssh2PublicKeyAuthenticationIOExceptionCopyright © 2025. All rights reserved.