public void setPreferredCipherSC ( String name ) throws SshException { if ( name == null ) return ; if ( ciphersSC . contains ( name ) ) { prefCipherSC = name ; setCipherPreferredPositionSC ( name , 0 ) ; } else { throw new SshException ( name + " is not supported" , SshException . UNSUPPORTED_ALGORITHM ) ; } }
Set the preferred cipher for the Server - > Client stream .