Enum Class Config.TrustStrategy.Strategy

java.lang.Object
java.lang.Enum<Config.TrustStrategy.Strategy>
org.neo4j.driver.Config.TrustStrategy.Strategy
All Implemented Interfaces:
Serializable, Comparable<Config.TrustStrategy.Strategy>, Constable
Enclosing class:
Config.TrustStrategy

public static enum Config.TrustStrategy.Strategy extends Enum<Config.TrustStrategy.Strategy>
The trust strategy that the driver supports
  • Enum Constant Details

    • TRUST_ALL_CERTIFICATES

      public static final Config.TrustStrategy.Strategy TRUST_ALL_CERTIFICATES
      Trust all certificates.
    • TRUST_CUSTOM_CA_SIGNED_CERTIFICATES

      public static final Config.TrustStrategy.Strategy TRUST_CUSTOM_CA_SIGNED_CERTIFICATES
      Trust custom CA-signed certificates.
    • TRUST_SYSTEM_CA_SIGNED_CERTIFICATES

      public static final Config.TrustStrategy.Strategy TRUST_SYSTEM_CA_SIGNED_CERTIFICATES
      Trust system CA-signed certificates.
  • Method Details

    • values

      public static Config.TrustStrategy.Strategy[] 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 Config.TrustStrategy.Strategy 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