@@ -0,0 +1,1237 @@
+package com.netply.botchan.web.model;%0A%0Apublic class Account %7B%0A    private String username;%0A    private String password;%0A%0A%0A    public Account() %7B%0A    %7D%0A%0A    public Account(String username, String password) %7B%0A        this.username = username;%0A        this.password = password;%0A    %7D%0A%0A    public String getUsername() %7B%0A        return username;%0A    %7D%0A%0A    public String getPassword() %7B%0A        return password;%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A        Account account = (Account) o;%0A%0A        if (username != null ? !username.equals(account.username) : account.username != null) return false;%0A        return password != null ? password.equals(account.password) : account.password == null;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        int result = username != null ? username.hashCode() : 0;%0A        result = 31 * result + (password != null ? password.hashCode() : 0);%0A        return result;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22Account%7B%22 +%0A                %22username='%22 + username + '%5C'' +%0A                %22, password='%22 + password + '%5C'' +%0A                '%7D';%0A    %7D%0A%7D%0A

Use Spring Security to manage Basic Authentication