code: public static final KeyPair createKeyPair(BigInteger p, BigInteger g) throws GeneralSecurityException {
  		KeyPairGenerator keyGen = KeyPairGenerator.getInstance(ALGORITHM);
  	    keyGen.initialize(new DHParameterSpec(p, g), new SecureRandom());
  		return keyGen.generateKeyPair();
  	}
docs: <p>Creates and returns a DH key pair for the given <code>p</code> and <code>g</code>.</p>
  @param p
  @param g
  @return
  @throws GeneralSecurityException