code: public static KeyPairGenerator newKeyPairGenerator(final String algorithm, final int keySize,
  		final SecureRandom secureRandom) throws NoSuchAlgorithmException
  	{
  		final KeyPairGenerator generator = KeyPairGenerator.getInstance(algorithm);
  		generator.initialize(keySize, secureRandom);
  		return generator;
  	}
docs: Factory method for creating a new {@link KeyPairGenerator} from the given parameters.
  
  @param algorithm
  the algorithm
  @param keySize
  the key size
  @param secureRandom
  the secure random
  @return the new {@link KeyPairGenerator} from the given parameters
  
  @throws NoSuchAlgorithmException
  is thrown if no Provider supports a KeyPairGeneratorSpi implementation for the
  specified algorithm