misc fixes

From-SVN: r45758
This commit is contained in:
Anthony Green 2001-09-23 01:05:55 +00:00 committed by Anthony Green
parent 040cc0718f
commit 8eba5a2b7f
4 changed files with 25 additions and 6 deletions

View file

@ -25,6 +25,7 @@ This exception does not however invalidate any other reasons why the
executable file might be covered by the GNU General Public License. */
package java.security;
import java.security.spec.AlgorithmParameterSpec;
final class DummyKeyPairGenerator extends KeyPairGenerator
{
@ -41,6 +42,12 @@ final class DummyKeyPairGenerator extends KeyPairGenerator
kpgSpi.initialize(keysize, random);
}
public void initialize(AlgorithmParameterSpec params, SecureRandom random)
throws InvalidAlgorithmParameterException
{
kpgSpi.initialize(params, random);
}
public KeyPair generateKeyPair()
{
return kpgSpi.generateKeyPair();

View file

@ -35,7 +35,7 @@ package java.security.spec;
@author Mark Benvenuto
*/
public abstract class EncodedKeySpec
public abstract class EncodedKeySpec implements KeySpec
{
private byte[] encodedKey;