String mgfName = "MGF1";
AlgorithmParameterSpec mgfSpec = MGF1ParameterSpec.SHA1;
PSource pSrc = PSource.PSpecified.DEFAULT;
try {
new OAEPParameterSpec(null, mgfName, mgfSpec, pSrc);
fail("NullPointerException should be thrown in the case of "
+ "null mdName.");
} catch (NullPointerException e) {
}
try {
new OAEPParameterSpec(mdName, null, mgfSpec, pSrc);
fail("NullPointerException should be thrown in the case of "
+ "null mgfName.");
} catch (NullPointerException e) {
}
try {
new OAEPParameterSpec(mdName, mgfName, mgfSpec, null);
fail("NullPointerException should be thrown in the case of "
+ "null pSrc.");
} catch (NullPointerException e) {
}