|
|
@ -20,6 +20,14 @@ public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
|
this.credentials = new ArrayList<Credential>(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Create a new Set of User credentials |
|
|
|
* @param name |
|
|
|
* @param password |
|
|
|
* @return size of repositoy - arraylist for checking |
|
|
|
*/ |
|
|
|
|
|
|
|
public int createNewCredential(String name, String password) |
|
|
|
{ |
|
|
|
try { |
|
|
@ -33,6 +41,12 @@ public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
|
return this.getListSize(); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Function to return a specific Credential via Name input |
|
|
|
* @param needle [ aka to-search-for ] |
|
|
|
* @return usercredential | NULL |
|
|
|
*/ |
|
|
|
|
|
|
|
@Override |
|
|
|
public Credential getCredentialsViaName(String needle) { |
|
|
|
|
|
|
|