1415161718192021222324
} public void setUsername(String username) throws ClientException { if (username == null || username.isEmpty()) { throw new ClientException("Username can not be empty"); } this.username = username; }
2425262728293031323334
} public void setPasswordHash(String password) throws ClientException { if (password == null || password.isEmpty()) { throw new ClientException("Password can not be empty"); } this.password = password; }
6263646566676869
} return sb.toString(); } catch (NoSuchAlgorithmException ex) { throw new ClientException(ex.getMessage()); } }