Top Fields Constructors Methods
org.apache.sshd.agent.local

public Class ProxyAgentFactory

extends Object
implements SshAgentFactory
Class Inheritance
All Implemented Interfaces
org.apache.sshd.agent.SshAgentFactory
Imports
java.io.IOException, java.util.List, .Map, java.util.concurrent.ConcurrentHashMap, java.util.concurrent.atomic.AtomicBoolean, org.apache.sshd.agent.SshAgent, .SshAgentFactory, .SshAgentServer, org.apache.sshd.agent.unix.AprLibrary, .UnixAgentFactory, org.apache.sshd.common.FactoryManager, .PropertyResolver, org.apache.sshd.common.channel.ChannelFactory, org.apache.sshd.common.session.ConnectionService, .Session, org.apache.sshd.common.util.GenericUtils, .ValidateUtils, org.apache.sshd.core.CoreModuleProperties, org.apache.sshd.server.session.ServerSession

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private final Map<String, AgentServerProxy>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SshAgent
createClient(Session
the Session the SshAgent is to be created for; may be null
session
,
FactoryManager
The FactoryManager instance
manager
)

Implements org.apache.sshd.agent.SshAgentFactory.createClient.

Create an SshAgent that can be used on the client side by the authentication process to send possible keys.

public SshAgentServer
createServer(ConnectionService service)

Implements org.apache.sshd.agent.SshAgentFactory.createServer.

Create the server side that will be used by other SSH clients.

public List<ChannelFactory>
getChannelForwardingFactories(FactoryManager
The FactoryManager through which the request is made
manager
)

Implements org.apache.sshd.agent.SshAgentFactory.getChannelForwardingFactories.

The channels are requested by the ssh server when forwarding a client request.

public static boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

proxiesback to summary
private final Map<String, AgentServerProxy> proxies

Constructor Detail

ProxyAgentFactoryback to summary
public ProxyAgentFactory()

Method Detail

createClientback to summary
public SshAgent createClient(Session session, FactoryManager manager) throws IOException

Implements org.apache.sshd.agent.SshAgentFactory.createClient.

Doc from org.apache.sshd.agent.SshAgentFactory.createClient.

Create an SshAgent that can be used on the client side by the authentication process to send possible keys.

Parameters
session:Session

the Session the SshAgent is to be created for; may be null

manager:FactoryManager

The FactoryManager instance

Returns:SshAgent

The SshAgent instance, or null if no SSH agent shall be used

Annotations
@Override
Exceptions
IOException:
If failed to create the client
createServerback to summary
public SshAgentServer createServer(ConnectionService service) throws IOException

Implements org.apache.sshd.agent.SshAgentFactory.createServer.

Doc from org.apache.sshd.agent.SshAgentFactory.createServer.

Create the server side that will be used by other SSH clients. It will usually create a channel that will forward the requests to the original client.

Parameters
service:ConnectionService

The ConnectionService to use

Returns:SshAgentServer

The SshAgentServer instance

Annotations
@Override
Exceptions
IOException:
If failed to create the server
getChannelForwardingFactoriesback to summary
public List<ChannelFactory> getChannelForwardingFactories(FactoryManager manager)

Implements org.apache.sshd.agent.SshAgentFactory.getChannelForwardingFactories.

Doc from org.apache.sshd.agent.SshAgentFactory.getChannelForwardingFactories.

The channels are requested by the ssh server when forwarding a client request. The channel will receive agent requests and needs to forward them to the agent, either local or through another proxy.

Parameters
manager:FactoryManager

The FactoryManager through which the request is made

Returns:List<ChannelFactory>

The ChannelFactory-ies used to create channels for agent forwarding on the client side. If null or empty, agent forwarding is not available.

Annotations
@Override
isPreferredUnixAgentback to summary
public static boolean isPreferredUnixAgent(PropertyResolver resolver)