Code example for DSAParameterSpec

Methods: getG, getP, getQ

0
        params = new DummyAlgorithmParameters(paramSpi, p, "algorithm");
        params.init(enc);
        try { 
            params.init(enc, strFormatParam);
            fail("No expected IOException");
        } catch (IOException e) {
            // expected 
        } 
 
        // 
        // test: if params and format are null 
        // Regression test for HARMONY-2724 
        // 
        paramSpi = new MyAlgorithmParameters() {
 
            protected void engineInit(byte[] params, String format)
                    throws IOException { 
 
                runEngineInitB$String = true;
 
                // null is passed to spi-provider