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>(); 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) public int createNewCredential(String name, String password)
{ {
try { try {
@ -33,6 +41,12 @@ public class CredentialRepository implements CredentialRepositoryInterface{
return this.getListSize(); return this.getListSize();
} }
/**
* Function to return a specific Credential via Name input
* @param needle [ aka to-search-for ]
* @return usercredential | NULL
*/
@Override @Override
public Credential getCredentialsViaName(String needle) { public Credential getCredentialsViaName(String needle) {

Loading…
Cancel
Save