|
|
@ -12,6 +12,7 @@ public class PasswordManager implements PasswordManagerInterface { |
|
|
|
boolean running = true; |
|
|
|
InputStream inputStream = System.in; |
|
|
|
OutputStream outputStream = System.out; |
|
|
|
ArrayList<Vault> vaults = new ArrayList<>(); |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
PasswordManager pm = new PasswordManager(); |
|
|
@ -26,11 +27,6 @@ public class PasswordManager implements PasswordManagerInterface { |
|
|
|
println("Hello World"); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void listVaults() { |
|
|
|
println("Vaults:"); |
|
|
|
} |
|
|
|
|
|
|
|
private void println(String output) { |
|
|
|
try { |
|
|
|
outputStream.write((output + "\n").getBytes(StandardCharsets.UTF_8)); |
|
|
@ -39,6 +35,15 @@ public class PasswordManager implements PasswordManagerInterface { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void listVaults() { |
|
|
|
println("Vaults:"); |
|
|
|
} |
|
|
|
|
|
|
|
public void createNewVault() { |
|
|
|
vaults.add(new Vault()); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void openVault() { |
|
|
|
|
|
|
|