Code example for OAEPParameterSpec

Methods: getDigestAlgorithm

0
                OAEPParameterSpec.DEFAULT.getMGFParameters()
                                                    == MGF1ParameterSpec.SHA1);
        assertTrue("The source of the encoding input P of "
                + "OAEPParameterSpec.DEFAULT field should be the same object " 
                + "PSource.PSpecified.DEFAULT", 
                OAEPParameterSpec.DEFAULT.getPSource()
                                                == PSource.PSpecified.DEFAULT);
    } 
 
    /** 
     * getDigestAlgorithm() method testing. 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getDigestAlgorithm", 
        args = {} 
    ) 
    public void testGetDigestAlgorithm() { 
        String mdName = "SHA-1";
        String mgfName = "MGF1";