Enum PqcEnforcementPolicy

java.lang.Object
java.lang.Enum<PqcEnforcementPolicy>
io.vertx.core.net.PqcEnforcementPolicy
All Implemented Interfaces:
Serializable, Comparable<PqcEnforcementPolicy>

@Unstable public enum PqcEnforcementPolicy extends Enum<PqcEnforcementPolicy>
Policy for enforcing post-quantum cryptography (PQC) key exchange.
  • Enum Constant Details

    • RELAXED

      public static final PqcEnforcementPolicy RELAXED
      No PQC enforcement. Key exchange groups are used as-is if specified. If no groups are specified, the SSL engine negotiates normally.
    • CLIENT_NEGOTIATED

      public static final PqcEnforcementPolicy CLIENT_NEGOTIATED
      PQC is enforced on the server side but clients that do not support PQC are tolerated. X25519MLKEM768 is prepended to the key exchange groups if not already present. If PQC is not available at runtime, the application fails to start with a VertxException: "PQC enforcement policy CLIENT_NEGOTIATED requires X25519MLKEM768 but the configured SSL engine does not support it"
    • STRICT

      public static final PqcEnforcementPolicy STRICT
      PQC is strictly enforced. Both server and client must support PQC. The key exchange groups are replaced with only X25519MLKEM768. If PQC is not available at runtime, the application fails to start with a VertxException: "PQC enforcement policy STRICT requires X25519MLKEM768 but the configured SSL engine does not support it" Non-PQC clients will fail the TLS handshake.
  • Method Details

    • values

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

      public static PqcEnforcementPolicy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null