Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.francisco.jkeychain;
- import java.util.Date;
- public class Account {
- private Domain domain;
- private String username;
- private String password;
- private Date lastChanged;
- private String[] clients;
- private String notes;
- public Account(Domain domain, String username, String password, Date lastChanged, String[] clients, String notes) {
- this.domain = domain;
- this.username = username;
- this.password = password;
- this.lastChanged = lastChanged;
- this.clients = clients;
- this.notes = notes;
- }
- public Domain getDomain() { return domain; }
- public String getUsername() { return username; }
- public String getPassword() { return password; }
- public Date getLastChanged() { return lastChanged; }
- public String[] getClients() { return clients; }
- public String getNotes() { return notes; }
- public void setUsername(String username) { this.username = username; }
- public void setPassword(String password) { this.password = password; }
- public void addClient(String clients) { }
- public void removeClient(String clients) { }
- public void setNotes(String notes) { this.notes = notes; }
- public void setLastChanged() { this.lastChanged = lastChanged; }
- }
- package org.francisco.jkeychain;
- public class Domain {
- private String name;
- private int lenght;
- private boolean alpha;
- private boolean numbers;
- private boolean specialChars;
- private boolean ambiguousChars;
- public Domain(String name, int lenght, boolean alpha, boolean numbers, boolean specialChars, boolean ambiguousChars) {
- this.name = name;
- this.lenght = lenght;
- this.alpha = alpha;
- this.numbers = numbers;
- this.specialChars = specialChars;
- this.ambiguousChars = ambiguousChars;
- }
- public String getName() { return name; }
- public void setName(String name) { this.name = name; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement