Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sshtools.j2ssh.authentication.SshAuthenticationClient
com.sshtools.j2ssh.authentication.PublicKeyAuthenticationClient
public class PublicKeyAuthenticationClient
extends SshAuthenticationClient
Field Summary | |
protected SshPrivateKey |
Constructor Summary | |
|
Method Summary | |
boolean |
|
void |
|
boolean | |
String | |
String | |
Properties | |
void |
|
void |
|
void |
|
void |
|
Methods inherited from class com.sshtools.j2ssh.authentication.SshAuthenticationClient | |
authenticate , canAuthenticate , canPrompt , getAuthenticationPrompt , getMethodName , getPersistableProperties , getUsername , reset , setAuthenticationPrompt , setPersistableProperties , setUsername |
public PublicKeyAuthenticationClient()
Creates a new PublicKeyAuthenticationClient object.
public boolean acceptsKey(AuthenticationProtocolClient authentication, String username, String serviceToStart, SshPublicKey key) throws IOException
- Parameters:
authentication
-username
-serviceToStart
-key
-
- Returns:
public void authenticate(AuthenticationProtocolClient authentication, String serviceToStart) throws IOException, TerminatedStateException
- Overrides:
- authenticate in interface SshAuthenticationClient
- Parameters:
authentication
-serviceToStart
-
- Throws:
TerminatedStateException
-
public boolean canAuthenticate()
- Overrides:
- canAuthenticate in interface SshAuthenticationClient
- Returns:
public String getKeyfile()
public String getMethodName()
- Overrides:
- getMethodName in interface SshAuthenticationClient
- Returns:
public Properties getPersistableProperties()
- Overrides:
- getPersistableProperties in interface SshAuthenticationClient
public void setKeyfile(String privateKeyFile)
public void setPersistableProperties(Properties properties)
- Overrides:
- setPersistableProperties in interface SshAuthenticationClient
- Parameters:
properties
-