public void saveLoginsList(ArrayList<Identifiant> identifiants) {
		dataSaved = false;
		String query = "INSERT INTO identifiants (site, login, mdp) VALUES (?, ?, ?)";
		Connection connexion = null;
		PreparedStatement prepStmt = null;
		
		final int TOTAL_NB_QUERIES = identifiants.size();
		int successedQueries = 0;
		
		try {
			connexion = this.openDB();
			connexion.setAutoCommit(false);
			
			for (int i=0; i<identifiants.size(); i++) {
				byte[] loginEncrypted = this.encrypt(identifiants.get(i).getLogin(), this.clef);
				byte[] mdpEncrypted = this.encrypt(identifiants.get(i).getMdp(), this.clef);
				prepStmt = connexion.prepareStatement(query);
				prepStmt.setString(1, identifiants.get(i).getSite());
				prepStmt.setBytes(2, loginEncrypted);
				prepStmt.setBytes(3, mdpEncrypted);
				prepStmt.executeUpdate();
				
//				if (isDataSaved()) {
					successedQueries++;
					connexion.commit();
//				}
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		finally {
			try {
				if (prepStmt != null) prepStmt.close();
				if (connexion != null) connexion.close();
			} catch (SQLException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		
		if (successedQueries == TOTAL_NB_QUERIES) {
			dataSaved = true;
		}
		else {
			dataSaved = false;
		}		
	}