org.crsh.ssh.term
Class SSHLifeCycle

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

public class SSHLifeCycle
extends Object

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


Field Summary
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 Summary
SSHLifeCycle(PluginContext context, Charset encoding, int port, int idleTimeout, int authTimeout, org.apache.sshd.common.KeyPairProvider keyPairProvider, ArrayList<AuthenticationPlugin> authenticationPlugins)
           
 
Method Summary
 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()
           
 
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
.


context

private final PluginContext context
.


port

private final int port
.


idleTimeout

private final int idleTimeout
.


authTimeout

private final int authTimeout
.


encoding

private final Charset encoding
.


keyPairProvider

private final org.apache.sshd.common.KeyPairProvider keyPairProvider
.


authenticationPlugins

private final ArrayList<AuthenticationPlugin> authenticationPlugins
.


server

private org.apache.sshd.SshServer server
.


localPort

private Integer localPort
.

Constructor Detail

SSHLifeCycle

public SSHLifeCycle(PluginContext context,
                    Charset encoding,
                    int port,
                    int idleTimeout,
                    int authTimeout,
                    org.apache.sshd.common.KeyPairProvider keyPairProvider,
                    ArrayList<AuthenticationPlugin> authenticationPlugins)
Method Detail

getEncoding

public Charset getEncoding()

getPort

public int getPort()

getIdleTimeout

public int getIdleTimeout()

getAuthTimeout

public int getAuthTimeout()

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

getKeyPairProvider

public org.apache.sshd.common.KeyPairProvider getKeyPairProvider()

init

public void init()

destroy

public void destroy()

genericAuthenticate

private <T> boolean genericAuthenticate(Class<T> type,
                                        String username,
                                        T credential)


Copyright © 2015 eXo Platform SAS. All Rights Reserved.