Enum Class PluginConfig.DbSslMode

java.lang.Object
java.lang.Enum<PluginConfig.DbSslMode>
com.enhancedechest.config.PluginConfig.DbSslMode
All Implemented Interfaces:
Serializable, Comparable<PluginConfig.DbSslMode>, Constable
Enclosing class:
PluginConfig

public static enum PluginConfig.DbSslMode extends Enum<PluginConfig.DbSslMode>
TLS mode for a remote database connection, mirroring the drivers' own sslMode/sslmode levels. REQUIRE encrypts but trusts any certificate; VERIFY_FULL additionally verifies the certificate chain and hostname (the only mode that defends against a man-in-the-middle).
  • Enum Constant Details

  • Method Details

    • values

      public static PluginConfig.DbSslMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PluginConfig.DbSslMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null