It might be a bit early for this as Java 18 is still subject to change. As things stand, we could use the new getAttributes() method on java.security.KeyStore to detect Java 18. Adding EIGHTEEN will allow us to continue to test the range support in @ConditionalOnJava once the constants for Java 16 and earlier have been removed.