Enum PqcEnforcementPolicy
- All Implemented Interfaces:
Serializable, Comparable<PqcEnforcementPolicy>
Policy for enforcing post-quantum cryptography (PQC) key exchange.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPQC is enforced on the server side but clients that do not support PQC are tolerated.No PQC enforcement.PQC is strictly enforced. -
Method Summary
Modifier and TypeMethodDescriptionstatic PqcEnforcementPolicyReturns the enum constant of this type with the specified name.static PqcEnforcementPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException- if the argument is null
-