Package userManagement

Examples of userManagement.User


  public void login(String userName, char[] password) {
    this.userName = userName;
    this.password = new String(password);

    UserFileReader userFileReader = new UserFileReader();
    User user = userFileReader.readUser(userName);

    if (user == null) {
      int choice = JOptionPane.showConfirmDialog(null,
         "User does not exist, create new account?", "User not found",
         JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null);
View Full Code Here


  public void createUser(String alias) {
    UserFileWriter userFileWriter = new UserFileWriter();

    try {
      User user = null;
      try {
        user = new User(userName, password, alias, InetAddress.getLocalHost(), 0);
        System.out.println(InetAddress.getLocalHost().getHostAddress());
      } catch (UnknownHostException ex) {
      }
      userFileWriter.addNewUser(user);
View Full Code Here

TOP

Related Classes of userManagement.User

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.