Code example for ECFieldFp

     * Expected: must pass without any exceptions 
    public final void testECPublicKeySpec01() { 
        // Valid (see note below) parameters set 
        EllipticCurve c =
            new EllipticCurve(new ECFieldFp(BigInteger.valueOf(5L)),
        ECPoint g = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L));
        new ECPublicKeySpec(g,
                new ECParameterSpec(c, g, BigInteger.valueOf(5L), 10));
     * Test #2 for <code>ECPublicKeySpec(ECPoint, ECParameterSpec)</code> constructor<br>  
     * Assertion: throws <code>NullPointerException</code> if 
     * <code>w</code> or <code>params</code> is <code>null</code><br> 
     * Test preconditions: pass <code>null</code> as mentioned parameters<br> 
     * Expected: must throw <code>NullPointerException</code> 
Connect your IDE to all the code out there  Get Codota for Java