public class SSHLifeCycle extends Object
Modifier and Type | Field and Description |
---|---|
private ArrayList<AuthenticationPlugin> |
authenticationPlugins
.
|
private int |
authTimeout
.
|
private PluginContext |
context
.
|
private Charset |
encoding
.
|
private int |
idleTimeout
.
|
private org.apache.sshd.common.KeyPairProvider |
keyPairProvider
.
|
private Integer |
localPort
.
|
private Logger |
log
.
|
static org.apache.sshd.common.Session.AttributeKey<String> |
PASSWORD
.
|
private int |
port
.
|
private org.apache.sshd.SshServer |
server
.
|
static org.apache.sshd.common.Session.AttributeKey<String> |
USERNAME
.
|
Constructor and Description |
---|
SSHLifeCycle(PluginContext context,
Charset encoding,
int port,
int idleTimeout,
int authTimeout,
org.apache.sshd.common.KeyPairProvider keyPairProvider,
ArrayList<AuthenticationPlugin> authenticationPlugins) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
private <T> boolean |
genericAuthenticate(Class<T> type,
String username,
T credential) |
int |
getAuthTimeout() |
Charset |
getEncoding() |
int |
getIdleTimeout() |
org.apache.sshd.common.KeyPairProvider |
getKeyPairProvider() |
Integer |
getLocalPort()
Returns the local part after the ssh server has been succesfully bound or null.
|
int |
getPort() |
void |
init() |
private final PluginContext context
private final int port
private final int idleTimeout
private final int authTimeout
private final org.apache.sshd.common.KeyPairProvider keyPairProvider
private final ArrayList<AuthenticationPlugin> authenticationPlugins
private org.apache.sshd.SshServer server
public SSHLifeCycle(PluginContext context, Charset encoding, int port, int idleTimeout, int authTimeout, org.apache.sshd.common.KeyPairProvider keyPairProvider, ArrayList<AuthenticationPlugin> authenticationPlugins)
public Charset getEncoding()
public int getPort()
public int getIdleTimeout()
public int getAuthTimeout()
public Integer getLocalPort()
public org.apache.sshd.common.KeyPairProvider getKeyPairProvider()
public void init()
public void destroy()
private <T> boolean genericAuthenticate(Class<T> type, String username, T credential)
Copyright © 2015 eXo Platform SAS. All Rights Reserved.