public class ProxyAgentFactory extends java.lang.Object implements SshAgentFactory
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,AgentServerProxy> |
proxies |
DEFAULT_PROXY_AUTH_CHANNEL_TYPE, PREFER_UNIX_AGENT, PROXY_AUTH_CHANNEL_TYPE| Constructor and Description |
|---|
ProxyAgentFactory() |
| Modifier and Type | Method and Description |
|---|---|
SshAgent |
createClient(FactoryManager manager)
Create an SshAgent that can be used on the client side by the authentication process to send possible keys.
|
SshAgentServer |
createServer(ConnectionService service)
Create the server side that will be used by other SSH clients.
|
java.util.List<ChannelFactory> |
getChannelForwardingFactories(FactoryManager manager)
The channels are requested by the ssh server when forwarding a client request.
|
static boolean |
isPreferredUnixAgent(PropertyResolver resolver) |
private final java.util.Map<java.lang.String,AgentServerProxy> proxies
public java.util.List<ChannelFactory> getChannelForwardingFactories(FactoryManager manager)
SshAgentFactorygetChannelForwardingFactories in interface SshAgentFactorymanager - The FactoryManager through which the request is madeChannelFactory-ies used to create channels on the client sidepublic SshAgent createClient(FactoryManager manager) throws java.io.IOException
SshAgentFactorycreateClient in interface SshAgentFactorymanager - The FactoryManager instanceSshAgent instancejava.io.IOException - If failed to create the clientpublic SshAgentServer createServer(ConnectionService service) throws java.io.IOException
SshAgentFactorycreateServer in interface SshAgentFactoryservice - The ConnectionService to useSshAgentServer instancejava.io.IOException - If failed to create the serverpublic static boolean isPreferredUnixAgent(PropertyResolver resolver)