Advertisement
Guest User

Untitled

a guest
Aug 4th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.78 KB | None | 0 0
  1. package org.francisco.jkeychain;
  2. import java.util.Date;
  3.  
  4. public class Account {
  5.     private Domain domain;
  6.     private String username;
  7.     private String password;
  8.     private Date lastChanged;
  9.     private String[] clients;
  10.     private String notes;
  11.     public Account(Domain domain, String username, String password, Date lastChanged, String[] clients, String notes) {
  12.         this.domain = domain;
  13.         this.username = username;
  14.         this.password = password;
  15.         this.lastChanged = lastChanged;
  16.         this.clients = clients;
  17.         this.notes = notes;
  18.     }
  19.     public Domain getDomain() { return domain; }
  20.     public String getUsername() { return username; }
  21.     public String getPassword() { return password; }
  22.     public Date getLastChanged() { return lastChanged; }
  23.     public String[] getClients() { return clients; }
  24.     public String getNotes() { return notes; }
  25.     public void setUsername(String username) { this.username = username; }
  26.     public void setPassword(String password) { this.password = password; }
  27.     public void addClient(String clients) {  }
  28.     public void removeClient(String clients) { }
  29.     public void setNotes(String notes) { this.notes = notes; }
  30.     public void setLastChanged() { this.lastChanged = lastChanged; }
  31. }
  32.  
  33. package org.francisco.jkeychain;
  34.  
  35. public class Domain {
  36.     private String name;
  37.     private int lenght;
  38.     private boolean alpha;
  39.     private boolean numbers;
  40.     private boolean specialChars;
  41.     private boolean ambiguousChars;
  42.     public Domain(String name, int lenght, boolean alpha, boolean numbers, boolean specialChars, boolean ambiguousChars) {
  43.         this.name = name;
  44.         this.lenght = lenght;
  45.         this.alpha = alpha;
  46.         this.numbers = numbers;
  47.         this.specialChars = specialChars;
  48.         this.ambiguousChars = ambiguousChars;
  49.     }
  50.     public String getName() { return name; }
  51.     public void setName(String name) {  this.name = name; }
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement