code: public StreamCodec buildStreamEncryptor(Map<String, Object> parameters) {
      String encryptionType = EncryptionConfigParser.getEncryptionType(parameters);
      if (encryptionType == null) {
        throw new IllegalArgumentException("Encryption type not present in parameters!");
      }
  
      return buildStreamCryptoProvider(encryptionType, parameters);
    }
docs: Return a StreamEncryptor for the given parameters. The algorithm type to use will be extracted
  from the parameters object.
  @param parameters Configured parameters for algorithm.
  @return A StreamCodec for the requested algorithm
  @throws IllegalArgumentException If the given algorithm/parameter pair cannot be built