Code example for InvalidKeyException

0
                    primeQ == null ? null : primeQ.toByteArray(),
                    primeExponentP == null ? null : primeExponentP.toByteArray(),
                    primeExponentQ == null ? null : primeExponentQ.toByteArray(),
                    crtCoefficient == null ? null : crtCoefficient.toByteArray()));
        } catch (Exception e) {
            throw new InvalidKeyException(e);
        } 
    } 
 
    @Override 
    synchronized void readParams(byte[][] params) {
        super.readParams(params);
        // params[0] read in super.readParams 
        if (params[1] != null) {
            publicExponent = new BigInteger(params[1]);
        } 
        // params[2] read in super.readParams 
        if (params[3] != null) {
            primeP = new BigInteger(params[3]);
        } 
        if (params[4] != null) {