Class FilterHostKeyAlgorithms

java.lang.Object
com.trilead.ssh2.jenkins.FilterHostKeyAlgorithms

public class FilterHostKeyAlgorithms extends Object
Filter host key algorithms. The reason for this filter is that some algorithms have security issues. The filter can be disabled by setting the system property com.trilead.ssh2.jenkins.FilterHostKeyAlgorithms.enabled to false. The list of algorithms to filter can be set by setting the system property com.trilead.ssh2.jenkins.FilterHostKeyAlgorithms.algorithms (e.g. type01,type02,type03).
  • Constructor Details

    • FilterHostKeyAlgorithms

      public FilterHostKeyAlgorithms()
  • Method Details

    • filter

      public static String[] filter(String[] algorithms)
      Filter algorithms.
      Parameters:
      algorithms - The algorithms to filter.
      Returns:
      The filtered algorithms.