Enum KexProposalOption

    • Field Detail

      • CIPHER_PROPOSALS

        public static final java.util.Set<KexProposalOption> CIPHER_PROPOSALS
      • COMPRESSION_PROPOSALS

        public static final java.util.Set<KexProposalOption> COMPRESSION_PROPOSALS
      • LANGUAGE_PROPOSALS

        public static final java.util.Set<KexProposalOption> LANGUAGE_PROPOSALS
      • FIRST_KEX_PACKET_GUESS_MATCHES

        public static final java.util.Set<KexProposalOption> FIRST_KEX_PACKET_GUESS_MATCHES
      • PROPOSAL_MAX

        public static final int PROPOSAL_MAX
      • proposalIndex

        private final int proposalIndex
      • description

        private final java.lang.String description
    • Constructor Detail

      • KexProposalOption

        private KexProposalOption​(int index,
                                  java.lang.String desc)
    • Method Detail

      • values

        public static KexProposalOption[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (KexProposalOption c : KexProposalOption.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KexProposalOption valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getProposalIndex

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

        public final java.lang.String getDescription()
        Returns:
        User-friendly name for the KEX negotiation item
        See Also:
        RFC-4253 - section 7.1
      • fromName

        public static KexProposalOption fromName​(java.lang.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)