Class NoneCipher

java.lang.Object
com.sshtools.common.ssh.components.AbstractSshCipher
com.sshtools.common.ssh.components.NoneCipher
All Implemented Interfaces:
Component, SshCipher, SshComponent, SecureComponent

public class NoneCipher extends AbstractSshCipher

This special cipher implementation provides an unencrypted connection. This is not enabled by default and should be used with caution. To enable and use the cipher you should add the following code before you connect your SSH client.

 SshConnector con = SshConnector.getInstance();
 Ssh2Context ssh2Context = (Ssh2Context) con.getContext(SshConnector.SSH2);
 ssh2Context.supportedCiphers().add("none", NoneCipher.class);
 ssh2Context.setPreferredCipherCS("none");
 ssh2Context.setPreferredCipherSC("none");
 
Author:
Lee David Painter
  • Constructor Details

    • NoneCipher

      public NoneCipher()
  • Method Details