private static Map<String, Parameters> namedParameters() throws GeneralSecurityException {
    Map<String, Parameters> result = new HashMap<>();
        result.put(
            "XCHACHA20_POLY1305",
            XChaCha20Poly1305Parameters.create(XChaCha20Poly1305Parameters.Variant.TINK));
    result.put(
        "XCHACHA20_POLY1305_RAW",
        XChaCha20Poly1305Parameters.create(XChaCha20Poly1305Parameters.Variant.NO_PREFIX));
        return Collections.unmodifiableMap(result);
  }
This instance of {@code KeyManager} generates new {@code XChaCha20Poly1305} keys and produces new
instances of {@code XChaCha20Poly1305}.
java_src/src/main/java/com/google/crypto/tink/aead/XChaCha20Poly1305KeyManager.java