CustomECPrivateKey extends CustomPrivateKey implements ECPrivateKey { @Override public ECParameterSpec getParams() { try { AlgorithmParameters parameters = AlgorithmParameters.getInstance("EC"); parameters.init(new ECGenParameterSpec(group.getJavaName())); ECParameterSpec ecParameters = parameters.getParameterSpec(ECParameterSpec.class); return ecParameters; } catch (NoSuchAlgorithmException | InvalidParameterSpecException ex) { throw new UnsupportedOperationException("Could not generate ECParameterSpec", ex); } } private  CustomECPrivateKey();  CustomECPrivateKey(BigInteger privatekey, NamedGroup group); @Override BigInteger getS(); @Override String getAlgorithm(); @Override String getFormat(); @Override byte[] getEncoded(); @Override ECParameterSpec getParams(); @Override void adjustInContext(TlsContext context, ConnectionEndType ownerOfKey); @Override void adjustInConfig(Config config, ConnectionEndType ownerOfKey); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetParams() { Security.addProvider(new BouncyCastleProvider()); CustomECPrivateKey key = new CustomECPrivateKey(BigInteger.TEN, curve); ECParameterSpec params = key.getParams(); assertNotNull(params); }