Package org.apache.sshd.common.kex
Enum Class KexProposalOption
- All Implemented Interfaces:
Serializable
,Comparable<KexProposalOption>
,Constable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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 String
static final Set<KexProposalOption>
static final Set<KexProposalOption>
static final Set<KexProposalOption>
static final int
private final int
static final List<KexProposalOption>
AList
of all the options sorted according togetProposalIndex()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KexProposalOption
static KexProposalOption
fromProposalIndex
(int index) final String
final int
static KexProposalOption
Returns the enum constant of this class with the specified name.static KexProposalOption[]
values()
Returns an array containing the constants of this enum class, 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
AList
of 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 ornull
if no match found
-
fromProposalIndex
-