public enum GSSEncMode extends java.lang.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 | Field and Description |
|---|---|
java.lang.String |
value |
| Modifier and Type | Method and Description |
|---|---|
static GSSEncMode |
of(java.util.Properties info) |
boolean |
requireEncryption() |
static GSSEncMode |
valueOf(java.lang.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 static GSSEncMode[] values()
for (GSSEncMode c : GSSEncMode.values()) System.out.println(c);
public static GSSEncMode 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 boolean requireEncryption()
public static GSSEncMode of(java.util.Properties info) throws PSQLException
PSQLExceptionCopyright © 2025 PostgreSQL Global Development Group. All rights reserved.