パッケージ org.postgresql.jdbc

列挙 SslMode

java.lang.Object
java.lang.Enum<SslMode>
org.postgresql.jdbc.SslMode
すべての実装されたインタフェース:
Serializable, Comparable<SslMode>, java.lang.constant.Constable

public enum SslMode extends Enum<SslMode>
  • 列挙型定数の詳細

    • DISABLE

      public static final SslMode DISABLE
      Do not use encrypted connections.
    • ALLOW

      public static final SslMode ALLOW
      Start with non-encrypted connection, then try encrypted one.
    • PREFER

      public static final SslMode PREFER
      Start with encrypted connection, fallback to non-encrypted (default).
    • REQUIRE

      public static final SslMode REQUIRE
      Ensure connection is encrypted.
    • VERIFY_CA

      public static final SslMode VERIFY_CA
      Ensure connection is encrypted, and client trusts server certificate.
    • VERIFY_FULL

      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.
  • フィールド詳細

    • VALUES

      public static final SslMode[] VALUES
    • value

      public final String value
  • メソッドの詳細

    • values

      public static SslMode[] values()
      この列挙型の定数を含む配列を宣言されている順序で 返します。
      戻り値:
      この列挙型の定数を含む、宣言されている順序での配列
    • valueOf

      public static SslMode valueOf(String name)
      指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。(余分な空白文字を含めることは できません。)
      パラメータ:
      name - 返される列挙型定数の名前。
      戻り値:
      指定した名前の列挙型定数
      例外:
      IllegalArgumentException - この列挙型に、指定した名前の定数がない場合
      NullPointerException - 引数がnullの場合
    • requireEncryption

      public boolean requireEncryption()
    • verifyCertificate

      public boolean verifyCertificate()
    • verifyPeerName

      public boolean verifyPeerName()
    • of

      public static SslMode of(Properties info) throws PSQLException
      例外:
      PSQLException