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