Package org.apache.sshd.common.kex
Enum KexProposalOption
- All Implemented Interfaces:
Serializable,Comparable<KexProposalOption>
-
Nested Class Summary
Nested Classes -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<KexProposalOption> Compares values according togetProposalIndex()static final Set<KexProposalOption> static final Set<KexProposalOption> private final Stringstatic final Set<KexProposalOption> static final Set<KexProposalOption> static final Set<KexProposalOption> static final intprivate final intstatic final List<KexProposalOption> AListof all the options sorted according togetProposalIndex() -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KexProposalOptionstatic KexProposalOptionfromProposalIndex(int index) final Stringfinal intstatic KexProposalOptionReturns the enum constant of this type with the specified name.static KexProposalOption[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALGORITHMS
-
SERVERKEYS
-
C2SENC
-
S2CENC
-
C2SMAC
-
S2CMAC
-
C2SCOMP
-
S2CCOMP
-
C2SLANG
-
S2CLANG
-
-
Field Details
-
CIPHER_PROPOSALS
-
MAC_PROPOSALS
-
COMPRESSION_PROPOSALS
-
LANGUAGE_PROPOSALS
-
FIRST_KEX_PACKET_GUESS_MATCHES
-
BY_PROPOSAL_INDEX
Compares values according togetProposalIndex() -
VALUES
AListof all the options sorted according togetProposalIndex()- See Also:
-
PROPOSAL_MAX
public static final int PROPOSAL_MAX -
proposalIndex
private final int proposalIndex -
description
-
-
Constructor Details
-
KexProposalOption
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getProposalIndex
public final int getProposalIndex()- Returns:
- The proposal option location in the KEX array
-
getDescription
- Returns:
- User-friendly name for the KEX negotiation item
- See Also:
-
fromName
- Parameters:
n- The option name - ignored ifnull/empty- Returns:
- The matching
Enum.name()- case insensitive ornullif no match found
-
fromProposalIndex
-