public static void create(OutputStream outputStream, String outFormat,
      String masterKeyUri, String credentialPath, KeyTemplate keyTemplate)
      throws GeneralSecurityException, IOException {
    TinkeyUtil.createKeyset(outputStream, outFormat, masterKeyUri, credentialPath,
        keyTemplate);
  }
Create a new keyset.

<p>Creates a keyset that contains a single key of template {@code keyTemplate}, and writes it
to {@code outputStream}. If {@code masterKeyUri} is not null, encrypt the output keyset with
{@code masterKeyUri} and {@code credentialPath}.

@throws GeneralSecurityException if cannot generate or encrypt the output keyset
@throws IOException if cannot write the output keyset
tools/tinkey/src/main/java/com/google/crypto/tink/tinkey/CreateKeysetCommand.java