public class AgentAuthenticationClient extends SshAuthenticationClient
Provides an application with an authentication mechanism that links to the sshtools agent; the agent stores private keys and can hash and sign data for the public key authentication request.
| Modifier and Type | Field and Description |
|---|---|
protected SshAgentClient |
agent |
| Constructor and Description |
|---|
AgentAuthenticationClient()
Creates a new AgentAuthenticationClient object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsKey(AuthenticationProtocolClient authentication,
java.lang.String username,
java.lang.String serviceToStart,
SshPublicKey key) |
void |
authenticate(AuthenticationProtocolClient authentication,
java.lang.String serviceToStart) |
boolean |
canAuthenticate() |
java.lang.String |
getMethodName() |
java.util.Properties |
getPersistableProperties() |
boolean |
hasAcceptableKey(SshClient ssh) |
void |
reset() |
void |
setAgent(SshAgentClient agent) |
void |
setPersistableProperties(java.util.Properties properties) |
boolean |
showAuthenticationDialog(java.awt.Component parent) |
canPrompt, getAuthenticationPrompt, getUsername, setAuthenticationPrompt, setUsernameprotected SshAgentClient agent
public AgentAuthenticationClient()
public void setAgent(SshAgentClient agent)
public void reset()
reset in class SshAuthenticationClientpublic java.lang.String getMethodName()
getMethodName in class SshAuthenticationClientpublic boolean acceptsKey(AuthenticationProtocolClient authentication, java.lang.String username, java.lang.String serviceToStart, SshPublicKey key) throws java.io.IOException
authentication - username - serviceToStart - key - java.io.IOExceptionpublic void authenticate(AuthenticationProtocolClient authentication, java.lang.String serviceToStart) throws java.io.IOException, TerminatedStateException
authenticate in class SshAuthenticationClientauthentication - serviceToStart - java.io.IOExceptionTerminatedStateExceptionAuthenticationProtocolExceptionpublic boolean showAuthenticationDialog(java.awt.Component parent)
parent - public java.util.Properties getPersistableProperties()
getPersistableProperties in class SshAuthenticationClientpublic void setPersistableProperties(java.util.Properties properties)
setPersistableProperties in class SshAuthenticationClientproperties - public boolean canAuthenticate()
canAuthenticate in class SshAuthenticationClientpublic boolean hasAcceptableKey(SshClient ssh)
ssh - Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.