Browse Source

Inserting JavaDoc for credential search function

feature-serializer
fdai5728 3 years ago
parent
commit
909010aac4
  1. 14
      src/main/java/CredentialRepository.java

14
src/main/java/CredentialRepository.java

@ -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) {

Loading…
Cancel
Save