public class Ssh1RhostsRsaAuthentication extends Object implements SshAuthentication
CANCELLED, COMPLETE, FAILED, FURTHER_AUTHENTICATION_REQUIRED, PUBLIC_KEY_ACCEPTABLE| Constructor and Description |
|---|
Ssh1RhostsRsaAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
String |
getClientUsername()
Get the user's username on the client computer
|
String |
getMethod()
The SSH authentication method name
|
SshPrivateKey |
getPrivateKey()
Get the private key used for this authentication
|
SshPublicKey |
getPublicKey()
Set the public key used for this authentication
|
String |
getUsername()
Get the username for this authentication attempt.
|
void |
setClientUsername(String clientUsername)
Set the user's username on the client computer
|
void |
setPrivateKey(SshPrivateKey prv)
Set the private key for the authentication attempt
|
void |
setPublicKey(SshPublicKey pub)
Set the public key for the authentication attempt
|
void |
setUsername(String username)
Set the username for this authentication attempt.
|
public void setUsername(String username)
SshAuthenticationsetUsername in interface SshAuthenticationpublic String getUsername()
SshAuthenticationgetUsername in interface SshAuthenticationpublic String getMethod()
SshAuthenticationgetMethod in interface SshAuthenticationpublic void setPublicKey(SshPublicKey pub)
pub - public void setPrivateKey(SshPrivateKey prv)
prv - public void setClientUsername(String clientUsername)
clientUsername - public String getClientUsername()
public SshPrivateKey getPrivateKey()
public SshPublicKey getPublicKey()
Copyright © 2025. All rights reserved.