diff --git a/src/main/java/CredentialRepository.java b/src/main/java/CredentialRepository.java new file mode 100644 index 0000000..3964dd6 --- /dev/null +++ b/src/main/java/CredentialRepository.java @@ -0,0 +1,55 @@ +import java.util.ArrayList; + +public class CredentialRepository implements CredentialRepositoryInterface{ + + private int idCounter = 0; + private ArrayList credentials; + + public CredentialRepository() + { + this.credentials = new ArrayList(); + } + + public void createNewCredential(String name, String password) + { + try { + this.credentials.add(new Credential(name, password, this.idCounter++)); + } + catch(Exception fail) + { + System.err.println(fail.getMessage()); + } + } + + @Override + public void edit() { + + } + + @Override + public void delete() { + + } + + @Override + public void getCredentials() { + + } + + @Override + public void setCredentials() { + + } + + @Override + public void getAsJSON() { + + } + + @Override + public void loadCredentialsFromJSON() { + + } +} + +