Enum KexExtensionHandler.AvailabilityPhase
- java.lang.Object
-
- java.lang.Enum<KexExtensionHandler.AvailabilityPhase>
-
- org.apache.sshd.common.kex.extension.KexExtensionHandler.AvailabilityPhase
-
- All Implemented Interfaces:
Serializable
,Comparable<KexExtensionHandler.AvailabilityPhase>
- Enclosing interface:
- KexExtensionHandler
public static enum KexExtensionHandler.AvailabilityPhase extends Enum<KexExtensionHandler.AvailabilityPhase>
Provides a hint as to the context in whichisKexExtensionsAvailable
is invoked- Author:
- Apache MINA SSHD Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHOK
About to sendSSH_MSG_USERAUTH_SUCCESS
message.NEWKEYS
About to send theSSH_MSG_NEWKEYS
messagePREKEX
Decide whether to delay sending the KEX-INIT message until the peer one has been received.PROPOSAL
About to create the KEX-INIT proposal - should this session declare it support the KEX negotiation extension mechanism or not.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KexExtensionHandler.AvailabilityPhase
valueOf(String name)
Returns the enum constant of this type with the specified name.static KexExtensionHandler.AvailabilityPhase[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PREKEX
public static final KexExtensionHandler.AvailabilityPhase PREKEX
Decide whether to delay sending the KEX-INIT message until the peer one has been received. Note: currently invoked only by client sessions, but code should not rely on this implicit assumption.
-
PROPOSAL
public static final KexExtensionHandler.AvailabilityPhase PROPOSAL
About to create the KEX-INIT proposal - should this session declare it support the KEX negotiation extension mechanism or not.
-
NEWKEYS
public static final KexExtensionHandler.AvailabilityPhase NEWKEYS
About to send theSSH_MSG_NEWKEYS
message
-
AUTHOK
public static final KexExtensionHandler.AvailabilityPhase AUTHOK
About to sendSSH_MSG_USERAUTH_SUCCESS
message. Note: currently invoked only by server sessions, but code should not rely on this implicit assumption.
-
-
Method Detail
-
values
public static KexExtensionHandler.AvailabilityPhase[] 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 (KexExtensionHandler.AvailabilityPhase c : KexExtensionHandler.AvailabilityPhase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KexExtensionHandler.AvailabilityPhase 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 nameNullPointerException
- if the argument is null
-
-