org.crsh.ssh.term
Class SSHLifeCycle

java.lang.Object
  extended by org.crsh.term.TermLifeCycle
      extended by org.crsh.ssh.term.SSHLifeCycle

public class SSHLifeCycle
extends TermLifeCycle

Interesting stuff here : http://gerrit.googlecode.com/git-history/4b9e5e7fb9380cfadd28d7ffe3dc496dc06f5892/gerrit-sshd/src/main/java/com/google/gerrit/sshd/DatabasePubKeyAuth.java


Field Summary
private  AuthenticationPlugin authentication
          .
private  int authTimeout
          .
private  int idleTimeout
          .
private  Resource key
          .
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 Summary
SSHLifeCycle(PluginContext context, AuthenticationPlugin<?> authentication)
           
 
Method Summary
protected  void doDestroy()
           
protected  void doInit()
           
 int getAuthTimeout()
           
 int getIdleTimeout()
           
 Resource getKey()
           
 Integer getLocalPort()
          Returns the local part after the ssh server has been succesfully bound or null.
 int getPort()
           
 void setAuthTimeout(int authTimeout)
           
 void setIdleTimeout(int idleTimeout)
           
 void setKey(Resource key)
           
 void setPort(int port)
           
 
Methods inherited from class org.crsh.term.TermLifeCycle
destroy, getContext, getHandler, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USERNAME

public static final org.apache.sshd.common.Session.AttributeKey<String> USERNAME
.


PASSWORD

public static final org.apache.sshd.common.Session.AttributeKey<String> PASSWORD
.


log

private final Logger log
.


server

private org.apache.sshd.SshServer server
.


port

private int port
.


idleTimeout

private int idleTimeout
.


authTimeout

private int authTimeout
.


key

private Resource key
.


authentication

private final AuthenticationPlugin authentication
.


localPort

private Integer localPort
.

Constructor Detail

SSHLifeCycle

public SSHLifeCycle(PluginContext context,
                    AuthenticationPlugin<?> authentication)
Method Detail

getPort

public int getPort()

setPort

public void setPort(int port)

getIdleTimeout

public int getIdleTimeout()

setIdleTimeout

public void setIdleTimeout(int idleTimeout)

getAuthTimeout

public int getAuthTimeout()

setAuthTimeout

public void setAuthTimeout(int authTimeout)

getLocalPort

public Integer getLocalPort()
Returns the local part after the ssh server has been succesfully bound or null. This is useful when the port is chosen at random by the system.

Returns:
the local port

getKey

public Resource getKey()

setKey

public void setKey(Resource key)

doInit

protected void doInit()
Specified by:
doInit in class TermLifeCycle

doDestroy

protected void doDestroy()
Specified by:
doDestroy in class TermLifeCycle


Copyright © 2014 eXo Platform SAS. All Rights Reserved.