Package org.eclipse.jgit.transport.sshd
Enum Class ServerKeyDatabase.Configuration.StrictHostKeyChecking
java.lang.Object
java.lang.Enum<ServerKeyDatabase.Configuration.StrictHostKeyChecking>
org.eclipse.jgit.transport.sshd.ServerKeyDatabase.Configuration.StrictHostKeyChecking
- All Implemented Interfaces:
Serializable
,Comparable<ServerKeyDatabase.Configuration.StrictHostKeyChecking>
,Constable
- Enclosing interface:
- ServerKeyDatabase.Configuration
public static enum ServerKeyDatabase.Configuration.StrictHostKeyChecking
extends Enum<ServerKeyDatabase.Configuration.StrictHostKeyChecking>
The possible values for the "StrictHostKeyChecking" ssh config.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription"no", "off": always accept new or mismatched keys."accept-new": accept new keys, but never accept modified keys."ask"; default: ask the user whether to accept (and store) a new or mismatched key."yes", "on": never accept new or mismatched keys. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASK
"ask"; default: ask the user whether to accept (and store) a new or mismatched key. -
REQUIRE_MATCH
"yes", "on": never accept new or mismatched keys. -
ACCEPT_ANY
"no", "off": always accept new or mismatched keys. -
ACCEPT_NEW
"accept-new": accept new keys, but never accept modified keys.
-
-
Constructor Details
-
StrictHostKeyChecking
private StrictHostKeyChecking()
-
-
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
-