Mercurial > stress-tester
changeset 589:0c51d5e3e624
CsvUsernamePasswordCredentialsProvider
author | Devel 2 |
---|---|
date | Tue, 03 Oct 2017 10:37:22 +0200 |
parents | c6bdc607c25b |
children | bddfc1384d32 |
files | stress-tester/src/main/java/com/passus/st/client/credentials/CsvUsernamePasswordCredentialsProvider.java |
diffstat | 1 files changed, 47 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/stress-tester/src/main/java/com/passus/st/client/credentials/CsvUsernamePasswordCredentialsProvider.java Tue Oct 03 10:37:22 2017 +0200 @@ -0,0 +1,47 @@ +package com.passus.st.client.credentials; + +import com.passus.commons.Assert; +import com.passus.config.Configuration; + +/** + * + * @author Mirosław Hawrot + */ +public class CsvUsernamePasswordCredentialsProvider implements CredentialsProvider { + + public enum ReadMode { + RANDOM, STEP_BY_STEP + } + + private String fileName; + + private ReadMode readMode = ReadMode.STEP_BY_STEP; + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public ReadMode getReadMode() { + return readMode; + } + + public void setReadMode(ReadMode readMode) { + Assert.notNull(readMode, "readMode"); + this.readMode = readMode; + } + + @Override + public Credentials getCredentials(ProviderContext context) { + throw new UnsupportedOperationException("Not supported yet."); + } + + @Override + public void configure(Configuration config) { + throw new UnsupportedOperationException("Not supported yet."); + } + +}