com.sshtools.j2ssh.agent
Class AgentAuthenticationClient
java.lang.Object
com.sshtools.j2ssh.authentication.SshAuthenticationClient
com.sshtools.j2ssh.agent.AgentAuthenticationClient
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.
- Version:
- $Revision: 1.19 $
- Author:
- Lee David Painter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agent
protected SshAgentClient agent
AgentAuthenticationClient
public AgentAuthenticationClient()
- Creates a new AgentAuthenticationClient object.
setAgent
public void setAgent(SshAgentClient agent)
reset
public void reset()
- Specified by:
reset
in class SshAuthenticationClient
getMethodName
public java.lang.String getMethodName()
- Specified by:
getMethodName
in class SshAuthenticationClient
- Returns:
acceptsKey
public boolean acceptsKey(AuthenticationProtocolClient authentication,
java.lang.String username,
java.lang.String serviceToStart,
SshPublicKey key)
throws java.io.IOException
- Parameters:
authentication
- username
- serviceToStart
- key
-
- Returns:
-
- Throws:
java.io.IOException
authenticate
public void authenticate(AuthenticationProtocolClient authentication,
java.lang.String serviceToStart)
throws java.io.IOException,
TerminatedStateException
- Specified by:
authenticate
in class SshAuthenticationClient
- Parameters:
authentication
- serviceToStart
-
- Throws:
java.io.IOException
TerminatedStateException
AuthenticationProtocolException
showAuthenticationDialog
public boolean showAuthenticationDialog(java.awt.Component parent)
- Parameters:
parent
-
- Returns:
getPersistableProperties
public java.util.Properties getPersistableProperties()
- Specified by:
getPersistableProperties
in class SshAuthenticationClient
- Returns:
setPersistableProperties
public void setPersistableProperties(java.util.Properties properties)
- Specified by:
setPersistableProperties
in class SshAuthenticationClient
- Parameters:
properties
-
canAuthenticate
public boolean canAuthenticate()
- Specified by:
canAuthenticate
in class SshAuthenticationClient
- Returns:
hasAcceptableKey
public boolean hasAcceptableKey(SshClient ssh)
- Parameters:
ssh
-
- Returns:
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.