public static void main(String[] args) throws Exception {
    DeterministicAeadConfig.register();
    HybridConfig.register(); // includes Aead and Mac
    PrfConfig.register();
    SignatureConfig.register();
    StreamingAeadConfig.register();
    JwtSignatureConfig.register();
    JwtMacConfig.register();
    KeyDerivationConfig.register();
    // place holder for Internal Prps. DO NOT EDIT.

    KmsClientsFactory.globalInstance().addFactory(AwsKmsClient::new);
    KmsClientsFactory.globalInstance().addFactory(GcpKmsClient::new);

    TinkeyCommands commands = new TinkeyCommands();
    CmdLineParser parser = new CmdLineParser(commands);

    try {
      parser.parseArgument(args);
    } catch (CmdLineException e) {
      System.out.println("Argument wrong!");
      System.out.println(e);
      System.out.println();
      e.getParser().printUsage(System.out);
      System.exit(1);
    }
    commands.command.run();
  }
Tinkey is a command-line tool to manage keys for Tink.
tools/tinkey/src/main/java/com/google/crypto/tink/tinkey/Tinkey.java