Enum KexProposalOption

java.lang.Object
java.lang.Enum<KexProposalOption>
org.apache.sshd.common.kex.KexProposalOption
All Implemented Interfaces:
Serializable, Comparable<KexProposalOption>, java.lang.constant.Constable

public enum KexProposalOption extends Enum<KexProposalOption>
  • Enum Constant Details

  • Field Details

  • Constructor Details

    • KexProposalOption

      private KexProposalOption(int index, String desc)
  • Method Details

    • values

      public static KexProposalOption[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static KexProposalOption valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getProposalIndex

      public final int getProposalIndex()
      Returns:
      The proposal option location in the KEX array
    • getDescription

      public final String getDescription()
      Returns:
      User-friendly name for the KEX negotiation item
      See Also:
    • fromName

      public static KexProposalOption fromName(String n)
      Parameters:
      n - The option name - ignored if null/empty
      Returns:
      The matching Enum.name() - case insensitive or null if no match found
    • fromProposalIndex

      public static KexProposalOption fromProposalIndex(int index)