}
public static PasswordSetting getpasswordSetting() {
String sql = "CALL passwordSettings()";
ResultSet rs = execute(sql);
PasswordSetting p = null;
if (rs != null) {
try {
while (rs.next()) {
p = new PasswordSetting();
p.setPasswordLenght(rs.getInt(2));
p.setUppercaseContain(rs.getBoolean(3));
p.setLowercaseContain(rs.getBoolean(4));
p.setNumberContain(rs.getBoolean(5));
p.setSpecialCharContain(rs.getBoolean(6));
p.setMaxPassStored(rs.getInt(7));
p.setMaxTry(rs.getInt(8));
p.setSpecialChars(rs.getString(9));
p.setDureeInactivite(rs.getInt(10));
p.setValiditeMotdepasse(rs.getInt(11));
p.setSalt(rs.getInt(12));
p.setAlgorithm(rs.getString(13));
p.setTimeOut(rs.getInt(14));
}
} catch (SQLException e) {
e.printStackTrace();
}
}