private ECSignatureConfiguration buildECSignatureConfiguration() throws NoSuchAlgorithmException {
        val keyGen = KeyPairGenerator.getInstance("EC");
        val keyPair = keyGen.generateKeyPair();
        if (TestsHelper.getJdkVersion() > 17) {
            return new ECSignatureConfiguration(keyPair, JWSAlgorithm.ES384);
        } else {
            return new ECSignatureConfiguration(keyPair, JWSAlgorithm.ES256);
        }
    }
This class tests the {@link JwtGenerator} and {@link JwtAuthenticator}.

@author Jerome Leleu
@since 1.8.0
pac4j-jwt/src/test/java/org/pac4j/jwt/JwtTests.java