Top Fields Constructors Methods
org.postgresql.jdbc

public final Enum SslMode

extends Enum<SslMode>
Class Inheritance
Imports
org.postgresql.PGProperty, org.postgresql.util.GT, .PSQLException, .PSQLState, java.util.Properties

Field Summary

Modifier and TypeField and Description
public static final SslMode
ALLOW

Start with non-encrypted connection, then try encrypted one.

public static final SslMode
DISABLE

Do not use encrypted connections.

public static final SslMode
PREFER

Start with encrypted connection, fallback to non-encrypted (default).

public static final SslMode
REQUIRE

Ensure connection is encrypted.

public final String
public static final SslMode[]
public static final SslMode
VERIFY_CA

Ensure connection is encrypted, and client trusts server certificate.

public static final SslMode
VERIFY_FULL

Ensure connection is encrypted, client trusts server certificate, and server hostname matches the one listed in the server certificate.

Constructor Summary

AccessConstructor and Description
private
SslMode(String value)

Method Summary

Modifier and TypeMethod and Description
public static SslMode
of(Properties info)

public boolean
public static SslMode
public static SslMode[]
public boolean
public boolean
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALLOWback to summary
public static final SslMode ALLOW

Start with non-encrypted connection, then try encrypted one.

DISABLEback to summary
public static final SslMode DISABLE

Do not use encrypted connections.

PREFERback to summary
public static final SslMode PREFER

Start with encrypted connection, fallback to non-encrypted (default).

REQUIREback to summary
public static final SslMode REQUIRE

Ensure connection is encrypted.

valueback to summary
public final String value
VALUESback to summary
public static final SslMode[] VALUES
VERIFY_CAback to summary
public static final SslMode VERIFY_CA

Ensure connection is encrypted, and client trusts server certificate.

VERIFY_FULLback to summary
public static final SslMode VERIFY_FULL

Ensure connection is encrypted, client trusts server certificate, and server hostname matches the one listed in the server certificate.

Constructor Detail

SslModeback to summary
private SslMode(String value)

Method Detail

ofback to summary
public static SslMode of(Properties info) throws PSQLException
requireEncryptionback to summary
public boolean requireEncryption()
valueOfback to summary
public static SslMode valueOf(String name)
valuesback to summary
public static SslMode[] values()
verifyCertificateback to summary
public boolean verifyCertificate()
verifyPeerNameback to summary
public boolean verifyPeerName()