code: public static KeyPair generateKeyPair(SignatureAlgorithm alg, SecureRandom random) {
          return generateKeyPair("EC", null, alg, random);
      }
docs: Generates a new secure-random key pair of sufficient strength for the specified Elliptic Curve {@link
  SignatureAlgorithm} (must be one of {@code ES256}, {@code ES384} or {@code ES512}) using the specified {@link
  SecureRandom} random number generator.  This is a convenience method that immediately delegates to {@link
  #generateKeyPair(String, String, SignatureAlgorithm, SecureRandom)} using {@code "EC"} as the {@code
  jcaAlgorithmName}.
  
  @param alg    alg the algorithm indicating strength, must be one of {@code ES256}, {@code ES384} or {@code
  ES512}
  @param random the SecureRandom generator to use during key generation.
  @return a new secure-randomly generated key pair of sufficient strength for the specified {@link
  SignatureAlgorithm} (must be one of {@code ES256}, {@code ES384} or {@code ES512}) using the specified {@link
  SecureRandom} random number generator.
  @see #generateKeyPair()
  @see #generateKeyPair(SignatureAlgorithm)
  @see #generateKeyPair(String, String, SignatureAlgorithm, SecureRandom)