Package modele

Examples of modele.PasswordSetting


  }

  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();
      }
    }
View Full Code Here

TOP

Related Classes of modele.PasswordSetting

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.