|
@ -1,10 +1,20 @@ |
|
|
import java.util.ArrayList; |
|
|
import java.util.ArrayList; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Credential Repository for handling user credentials |
|
|
|
|
|
* @author Claudia Metzler |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
public class CredentialRepository implements CredentialRepositoryInterface{ |
|
|
|
|
|
|
|
|
private int idCounter = 0; |
|
|
private int idCounter = 0; |
|
|
private ArrayList<Credential> credentials; |
|
|
private ArrayList<Credential> credentials; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Konstruktor |
|
|
|
|
|
* |
|
|
|
|
|
* Initializes instance variable ArrayList |
|
|
|
|
|
*/ |
|
|
public CredentialRepository() |
|
|
public CredentialRepository() |
|
|
{ |
|
|
{ |
|
|
this.credentials = new ArrayList<Credential>(); |
|
|
this.credentials = new ArrayList<Credential>(); |
|
|