public enum WireCrypt extends java.lang.Enum<WireCrypt>
Enum Constant and Description |
---|
DEFAULT
Equivalent to
ENABLED for wire protocol, but for JNA connections
it uses the default of the firebird.conf used by the client library. |
DISABLED |
ENABLED |
REQUIRED |
Modifier and Type | Method and Description |
---|---|
static WireCrypt |
fromString(java.lang.String name)
Get the enum value for the provided name, case-insensitive.
|
int |
getWireProtocolCryptLevel() |
static WireCrypt |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WireCrypt[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WireCrypt REQUIRED
public static final WireCrypt ENABLED
public static final WireCrypt DISABLED
public static WireCrypt[] values()
for (WireCrypt c : WireCrypt.values()) System.out.println(c);
public static WireCrypt valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getWireProtocolCryptLevel()
public static WireCrypt fromString(java.lang.String name) throws java.lang.IllegalArgumentException
Works like valueOf(String)
, except null
will return DEFAULT
and values
are handled case-insensitively.
name
- String namejava.lang.IllegalArgumentException
- if this enum type has no constant with the specified nameCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.