Class FilterAlgorithms

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

public class FilterAlgorithms extends Object
Class for filtering algorithms. The reason for this filter is that some algorithms have security issues. The filter can be disabled by setting the system property isEnabledFilterProperty to false. The list of algorithms to filter can be set by setting the system property filteredAlgorithmsProperty.
  • Constructor Details

    • FilterAlgorithms

      public FilterAlgorithms(String clazz, List<String> filteredAlgorithms)
      Constructor.
      Parameters:
      clazz - the class name used for the system properties
      filteredAlgorithms - the list of algorithms to filter
  • Method Details

    • filter

      public String[] filter(String[] algorithms)
      Filter algorithms.
      Parameters:
      algorithms - the algorithms to filter
      Returns:
      the filtered algorithms
    • getIsEnabledFilterProperty

      public String getIsEnabledFilterProperty()
    • getFilteredAlgorithmsProperty

      public String getFilteredAlgorithmsProperty()