Package org.apache.sshd.agent.local
Class ChannelAgentForwardingFactory
- java.lang.Object
-
- org.apache.sshd.agent.local.ChannelAgentForwardingFactory
-
- All Implemented Interfaces:
ChannelFactory
,NamedResource
public class ChannelAgentForwardingFactory extends java.lang.Object implements ChannelFactory
-
-
Field Summary
Fields Modifier and Type Field Description static ChannelAgentForwardingFactory
IETF
private java.lang.String
name
static ChannelAgentForwardingFactory
OPENSSH
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Constructor Description ChannelAgentForwardingFactory(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Channel
createChannel(Session session)
java.lang.String
getName()
-
-
-
Field Detail
-
OPENSSH
public static final ChannelAgentForwardingFactory OPENSSH
-
IETF
public static final ChannelAgentForwardingFactory IETF
-
name
private final java.lang.String name
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceNamedResource
- Returns:
- The resource name
-
createChannel
public Channel createChannel(Session session) throws java.io.IOException
- Specified by:
createChannel
in interfaceChannelFactory
- Parameters:
session
- TheSession
through which the request is made- Returns:
- The relevant
Channel
- Throws:
java.io.IOException
- If failed to create the requested instance
-
-