Code example for InvalidAlgorithmParameterException

0
    protected void engineInit( 
        AlgorithmParameterSpec  params,
        SecureRandom            random)
    throws InvalidAlgorithmParameterException 
    { 
        throw new InvalidAlgorithmParameterException("Not Implemented");
    } 
 
    protected void engineInit( 
        SecureRandom    random)
    { 
        if (random != null)
        { 
            engine.init(new KeyGenerationParameters(random, defaultKeySize));
            uninitialised = false;
        } 
    } 
 
    protected void engineInit( 
        int             keySize,
        SecureRandom    random)