|
|
@ -10,7 +10,7 @@ public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
|
this.credentials = new ArrayList<Credential>(); |
|
|
|
} |
|
|
|
|
|
|
|
public void createNewCredential(String name, String password) |
|
|
|
public int createNewCredential(String name, String password) |
|
|
|
{ |
|
|
|
try { |
|
|
|
this.credentials.add(new Credential(name, password, this.idCounter++)); |
|
|
@ -19,6 +19,8 @@ public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
|
{ |
|
|
|
System.err.println(fail.getMessage()); |
|
|
|
} |
|
|
|
|
|
|
|
return this.getListSize(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
@ -50,6 +52,12 @@ public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
|
public void loadCredentialsFromJSON() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
private int getListSize() |
|
|
|
{ |
|
|
|
return this.credentials.size(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|