summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUStatus.java
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUStatus.java')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUStatus.java174
1 files changed, 38 insertions, 136 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUStatus.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUStatus.java
index 01e10e1d..44e24c30 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUStatus.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/MobileBKUStatus.java
@@ -15,205 +15,107 @@
*/
package at.asit.pdfover.gui.workflow.states.mobilebku;
-// Imports
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-import at.asit.pdfover.gui.workflow.ConfigProvider;
-
/**
*
*/
-public class MobileBKUStatus {
- /**
- * SLF4J Logger instance
- **/
- @SuppressWarnings("unused")
- private static final Logger log = LoggerFactory
- .getLogger(MobileBKUStatus.class);
-
- /**
- * Maximum number of TAN tries!
- */
- public static final int MOBILE_MAX_TAN_TRIES = 3;
-
- private String viewstate;
- private String eventvalidation;
- private String sessionID;
- private String phoneNumber;
- private String mobilePassword;
- private String baseURL;
- private String refVal;
- private String errorMessage;
- private String tan;
- private String server;
- private int tanTries = MOBILE_MAX_TAN_TRIES;
-
- /**
- * Constructor
- * @param provider
- */
- public MobileBKUStatus(ConfigProvider provider) {
- this.setPhoneNumber(provider.getDefaultMobileNumber());
- this.setMobilePassword(provider.getDefaultMobilePassword());
- }
-
+public interface MobileBKUStatus {
/**
- * Get number of TAN tries left
- * @return the number of TAN tries left
+ * @return the identification_url
*/
- public int getTanTries() {
- return this.tanTries;
- }
+ public abstract String getSessionID();
/**
- * Set number of TAN tries left
- * @param tries the number of TAN tries left
+ * @param sessionID the identification_url to set
*/
- public void setTanTries(int tries) {
- this.tanTries = tries;
- }
+ public abstract void setSessionID(String sessionID);
/**
- * @return the tan
+ * @return the phoneNumber
*/
- public String getTan() {
- return this.tan;
- }
+ public abstract String getPhoneNumber();
/**
- * @param tan the tan to set
+ * @param phoneNumber the phoneNumber to set
*/
- public void setTan(String tan) {
- this.tan = tan;
- }
+ public abstract void setPhoneNumber(String phoneNumber);
/**
- * @return the errorMessage
+ * @return the mobilePassword
*/
- public String getErrorMessage() {
- return this.errorMessage;
- }
+ public abstract String getMobilePassword();
/**
- * @param errorMessage the errorMessage to set
+ * @param mobilePassword the mobilePassword to set
*/
- public void setErrorMessage(String errorMessage) {
- this.errorMessage = errorMessage;
- }
+ public abstract void setMobilePassword(String mobilePassword);
/**
* @return the reference value
*/
- public String getRefVal() {
- return this.refVal;
- }
+ public abstract String getRefVal();
/**
* @param refVal the reference value to set
*/
- public void setRefVal(String refVal) {
- this.refVal = refVal;
- }
+ public abstract void setRefVal(String refVal);
/**
- * @return the credentialsFormAction
+ * @return the tan
*/
- public String getBaseURL() {
- return this.baseURL;
- }
+ public abstract String getTan();
/**
- * @param baseURL
+ * @param tan the tan to set
*/
- public void setBaseURL(String baseURL) {
- this.baseURL = baseURL;
- }
+ public abstract void setTan(String tan);
/**
- * @return the viewstate
+ * Get maximum number of TAN tries
+ * @return the maximum number of TAN tries
*/
- public String getViewstate() {
- return this.viewstate;
- }
+ public abstract int getMaxTanTries();
/**
- * @param viewstate
- * the viewstate to set
- */
- public void setViewstate(String viewstate) {
- this.viewstate = viewstate;
- }
-
- /**
- * @return the eventvalidation
+ * Get number of TAN tries left
+ * @return the number of TAN tries left
*/
- public String getEventvalidation() {
- return this.eventvalidation;
- }
+ public abstract int getTanTries();
/**
- * @param eventvalidation the eventvalidation to set
- */
- public void setEventvalidation(String eventvalidation) {
- this.eventvalidation = eventvalidation;
- }
-
- /**
- * @return the phoneNumber
+ * Set number of TAN tries left
+ * @param tries the number of TAN tries left
*/
- public String getPhoneNumber() {
- return this.phoneNumber;
- }
+ public abstract void setTanTries(int tries);
/**
- * @param phoneNumber the phoneNumber to set
+ * @return the errorMessage
*/
- public void setPhoneNumber(String phoneNumber) {
- this.phoneNumber = phoneNumber;
- }
+ public abstract String getErrorMessage();
/**
- * @return the mobilePassword
+ * @param errorMessage the errorMessage to set
*/
- public String getMobilePassword() {
- return this.mobilePassword;
- }
+ public abstract void setErrorMessage(String errorMessage);
/**
- * @param mobilePassword the mobilePassword to set
+ * @return the baseURL
*/
- public void setMobilePassword(String mobilePassword) {
- this.mobilePassword = mobilePassword;
- }
-
- /**
- * @return the identification_url
- */
- public String getSessionID() {
- return this.sessionID;
- }
+ public abstract String getBaseURL();
/**
- * @param sessionID the identification_url to set
+ * @param baseURL
*/
- public void setSessionID(String sessionID) {
- this.sessionID = sessionID;
- }
+ public abstract void setBaseURL(String baseURL);
/**
* Return the SL request server
* @return the SL request server
*/
- public String getServer() {
- return this.server;
- }
+ public abstract String getServer();
/**
* Set the SL request server
* @param server the SL request server
*/
- public void setServer(String server) {
- this.server = server;
- }
+ public abstract void setServer(String server);
}