Package net.schmizz.sshj.transport
Enum KeyExchanger.Expected
- java.lang.Object
-
- java.lang.Enum<KeyExchanger.Expected>
-
- net.schmizz.sshj.transport.KeyExchanger.Expected
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KeyExchanger.Expected>
- Enclosing class:
- KeyExchanger
private static enum KeyExchanger.Expected extends java.lang.Enum<KeyExchanger.Expected>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Expected()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyExchanger.Expected
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KeyExchanger.Expected[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KEXINIT
public static final KeyExchanger.Expected KEXINIT
we have sent or are sending KEXINIT, and expect the server's KEXINIT
-
FOLLOWUP
public static final KeyExchanger.Expected FOLLOWUP
we are expecting some followup data as part of the exchange
-
NEWKEYS
public static final KeyExchanger.Expected NEWKEYS
we are expecting SSH_MSG_NEWKEYS
-
-
Method Detail
-
values
public static KeyExchanger.Expected[] 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 (KeyExchanger.Expected c : KeyExchanger.Expected.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KeyExchanger.Expected 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 namejava.lang.NullPointerException
- if the argument is null
-
-