public enum GSSEncMode extends Enum<GSSEncMode>
| Enum Constant and Description |
|---|
ALLOW
Start with non-encrypted connection, then try encrypted one.
|
DISABLE
Do not use encrypted connections.
|
PREFER
Start with encrypted connection, fallback to non-encrypted (default).
|
REQUIRE
Ensure connection is encrypted.
|
| Modifier and Type | Method and Description |
|---|---|
static GSSEncMode |
of(Properties info) |
boolean |
requireEncryption() |
static GSSEncMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GSSEncMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GSSEncMode DISABLE
public static final GSSEncMode ALLOW
public static final GSSEncMode PREFER
public static final GSSEncMode REQUIRE
public final String value
public static GSSEncMode[] values()
for (GSSEncMode c : GSSEncMode.values()) System.out.println(c);
public static GSSEncMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean requireEncryption()
public static GSSEncMode of(Properties info) throws PSQLException
PSQLExceptionCopyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.