- All Implemented Interfaces:
Serializable
,Comparable<WireCrypt>
,Constable
- Author:
- Mark Rotteveel
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic WireCrypt
fromString
(String name) Get the enum value for the provided name, case-insensitive.int
static WireCrypt
Returns the enum constant of this class with the specified name.static WireCrypt[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUIRED
-
ENABLED
-
DISABLED
-
DEFAULT
Equivalent toENABLED
for wire protocol, but for JNA connections it uses the default of thefirebird.conf
used by the client library.
-
-
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
-
getWireProtocolCryptLevel
public int getWireProtocolCryptLevel()- Returns:
- Encryption level value for the wire protocol.
-
fromString
Get the enum value for the provided name, case-insensitive.Works like
valueOf(String)
, exceptnull
will returnDEFAULT
and values are handled case-insensitively.- Parameters:
name
- String name- Returns:
- Enum name for the name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified name
-