Object[] params = new Object[] {new Integer(Registry.PKCS8_ENCODING_ID),
Object[] params = new Object[] {Integer.valueOf(Registry.PKCS8_ENCODING_ID),
  private DHPrivateKey decodeDHPrivateKey(DHPrivateKeySpec spec)      throws InvalidKeySpecException  {    BigInteger p = spec.getP();    BigInteger g = spec.getG();    BigInteger x = spec.getX();    Object[] params = new Object[] {new Integer(Registry.PKCS8_ENCODING_ID),                                    null, p, g, x};    Object obj = invokeConstructor("gnu.javax.crypto.key.dh.GnuDHPrivateKey",                                   params);    return (DHPrivateKey) obj;  }