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, setUsername
protected SshAgentClient agent
public AgentAuthenticationClient()
public void setAgent(SshAgentClient agent)
public void reset()
reset
in class SshAuthenticationClient
public java.lang.String getMethodName()
getMethodName
in class SshAuthenticationClient
public boolean acceptsKey(AuthenticationProtocolClient authentication, java.lang.String username, java.lang.String serviceToStart, SshPublicKey key) throws java.io.IOException
authentication
- username
- serviceToStart
- key
- java.io.IOException
public void authenticate(AuthenticationProtocolClient authentication, java.lang.String serviceToStart) throws java.io.IOException, TerminatedStateException
authenticate
in class SshAuthenticationClient
authentication
- serviceToStart
- java.io.IOException
TerminatedStateException
AuthenticationProtocolException
public boolean showAuthenticationDialog(java.awt.Component parent)
parent
- public java.util.Properties getPersistableProperties()
getPersistableProperties
in class SshAuthenticationClient
public void setPersistableProperties(java.util.Properties properties)
setPersistableProperties
in class SshAuthenticationClient
properties
- public boolean canAuthenticate()
canAuthenticate
in class SshAuthenticationClient
public boolean hasAcceptableKey(SshClient ssh)
ssh
- Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.