public class SSHLifeCycle extends TermLifeCycle
| Modifier and Type | Field and Description |
|---|---|
private AuthenticationPlugin |
authentication
.
|
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,
AuthenticationPlugin<?> authentication) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doDestroy() |
protected void |
doInit() |
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 |
setKeyPairProvider(org.apache.sshd.common.KeyPairProvider keyPairProvider) |
void |
setPort(int port) |
destroy, getContext, getHandler, initprivate org.apache.sshd.SshServer server
private int port
private org.apache.sshd.common.KeyPairProvider keyPairProvider
private final AuthenticationPlugin authentication
public SSHLifeCycle(PluginContext context, AuthenticationPlugin<?> authentication)
public int getPort()
public void setPort(int port)
public Integer getLocalPort()
public org.apache.sshd.common.KeyPairProvider getKeyPairProvider()
public void setKeyPairProvider(org.apache.sshd.common.KeyPairProvider keyPairProvider)
protected void doInit()
doInit in class TermLifeCycleprotected void doDestroy()
doDestroy in class TermLifeCycleCopyright © 2014 eXo Platform SAS. All Rights Reserved.