Package com.sshtools.server.callback
Class CallbackContextFactory
java.lang.Object
com.sshtools.server.callback.CallbackContextFactory
- All Implemented Interfaces:
com.sshtools.synergy.nio.ProtocolContextFactory<SshClientContext>
public class CallbackContextFactory
extends Object
implements com.sshtools.synergy.nio.ProtocolContextFactory<SshClientContext>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCallbackContextFactory
(com.sshtools.common.auth.MutualKeyAuthenticatonStore store, CallbackRegistrationService callbacks, AbstractSshServer server) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureCallbackContext
(SshClientContext clientContext) protected void
configureServerContext
(SshServerContext serverContext, SocketChannel sc) createContext
(com.sshtools.synergy.nio.SshEngineContext daemonContext, SocketChannel sc) protected SshServerContext
createServerContext
(com.sshtools.synergy.nio.SshEngineContext daemonContext) void
setCallbackIdentifier
(String callbackIdentifier) void
setMutualAuthenticationStore
(com.sshtools.common.auth.MutualKeyAuthenticatonStore store)
-
Field Details
-
CALLBACK_IDENTIFIER
- See Also:
-
CALLBACK_MEMO
- See Also:
-
-
Constructor Details
-
CallbackContextFactory
public CallbackContextFactory(com.sshtools.common.auth.MutualKeyAuthenticatonStore store, CallbackRegistrationService callbacks, AbstractSshServer server)
-
-
Method Details
-
createServerContext
protected SshServerContext createServerContext(com.sshtools.synergy.nio.SshEngineContext daemonContext) throws IOException, com.sshtools.common.ssh.SshException - Throws:
IOException
com.sshtools.common.ssh.SshException
-
createContext
public SshClientContext createContext(com.sshtools.synergy.nio.SshEngineContext daemonContext, SocketChannel sc) throws IOException, com.sshtools.common.ssh.SshException - Specified by:
createContext
in interfacecom.sshtools.synergy.nio.ProtocolContextFactory<SshClientContext>
- Throws:
IOException
com.sshtools.common.ssh.SshException
-
configureCallbackContext
-
setCallbackIdentifier
-
setMutualAuthenticationStore
public void setMutualAuthenticationStore(com.sshtools.common.auth.MutualKeyAuthenticatonStore store) -
configureServerContext
protected void configureServerContext(SshServerContext serverContext, SocketChannel sc) throws IOException, com.sshtools.common.ssh.SshException - Throws:
IOException
com.sshtools.common.ssh.SshException
-