public class Ssh2AgentAuthentication extends Ssh2PublicKeyAuthentication
authenticating, privatekey, publickey
CANCELLED, 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.
|
setSignatureGenerator
getPrivateKey, getPublicKey, isAuthenticating, setAuthenticating, setPrivateKey, setPublicKey
public Ssh2AgentAuthentication(SshAgentClient agent)
public String getMethod()
SshAuthentication
getMethod
in interface SshAuthentication
getMethod
in class PublicKeyAuthentication
public String getUsername()
SshAuthentication
getUsername
in interface SshAuthentication
getUsername
in class PublicKeyAuthentication
public void setUsername(String username)
SshAuthentication
setUsername
in interface SshAuthentication
setUsername
in class PublicKeyAuthentication
public SshAgentClient getSshAgentClient()
public void authenticate(AuthenticationProtocol authentication, String servicename) throws SshException, AuthenticationResult
AuthenticationClient
authenticate
in interface AuthenticationClient
authenticate
in class Ssh2PublicKeyAuthentication
AuthenticationResult
SshException
protected byte[] encodeSignature(byte[] signature) throws IOException
encodeSignature
in class Ssh2PublicKeyAuthentication
IOException
Copyright © 2024. All rights reserved.