Code example for ECPublicKeySpec

0
        } 
 
 
        // Test case 2: params is null 
        try { 
            new ECPublicKeySpec(g, null);
            fail("#2: Expected NPE not thrown");
        } catch (NullPointerException ok) {
        } 
 
 
        // Test case 3: both w and params are null 
        try { 
            new ECPublicKeySpec(null, null);
            fail("#3: Expected NPE not thrown");
        } catch (NullPointerException ok) {
        } 
    } 
 
    /** 
Stop searching for code, let great code find you!  Add Codota to your java IDE