Code example for InvalidAlgorithmParameterException

Methods: toString

0
            engineInit(opmode, key, (AlgorithmParameterSpec)null, random);
        } 
        catch (InvalidAlgorithmParameterException e)
        { 
            // this shouldn't happen 
            throw new InvalidKeyException("Eeeek! " + e.toString(), e);
        } 
    } 
 
    protected byte[] engineUpdate( 
        byte[]  input,
        int     inputOffset,
        int     inputLen) 
    { 
        bOut.write(input, inputOffset, inputLen);
 
        if (cipher instanceof RSABlindedEngine)
        { 
            if (bOut.size() > cipher.getInputBlockSize() + 1)
            { 
                throw new ArrayIndexOutOfBoundsException("too much data for RSA block");