summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java
index 593edede..65bc0ff3 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java
@@ -50,10 +50,9 @@ public class ATrustHandler extends MobileBKUHandler {
*/
@Override
public void handleSLRequestResponse(String responseData) throws Exception {
- ATrustStatus status = (ATrustStatus) getStatus();
+ ATrustStatus status = getStatus();
// Extract infos:
-
String sessionID = MobileBKUHelper.extractTag(responseData,
"identification.aspx?sid=", "\""); //$NON-NLS-1$ //$NON-NLS-2$
@@ -79,7 +78,7 @@ public class ATrustHandler extends MobileBKUHandler {
*/
@Override
public String postCredentials() throws Exception {
- ATrustStatus status = (ATrustStatus) getStatus();
+ ATrustStatus status = getStatus();
Protocol.registerProtocol("https", //$NON-NLS-1$
new Protocol("https", new TrustedSocketFactory(), 443)); //$NON-NLS-1$
@@ -104,7 +103,7 @@ public class ATrustHandler extends MobileBKUHandler {
*/
@Override
public void handleCredentialsResponse(String responseData) throws Exception {
- ATrustStatus status = (ATrustStatus) getStatus();
+ ATrustStatus status = getStatus();
String viewState = status.getViewstate();
String eventValidation = status.getEventvalidation();
String sessionID = status.getSessionID();
@@ -148,7 +147,7 @@ public class ATrustHandler extends MobileBKUHandler {
*/
@Override
public String postTAN() throws IOException {
- ATrustStatus status = (ATrustStatus) getStatus();
+ ATrustStatus status = getStatus();
Protocol.registerProtocol("https", //$NON-NLS-1$
new Protocol("https", new TrustedSocketFactory(), 443)); //$NON-NLS-1$
@@ -196,4 +195,9 @@ public class ATrustHandler extends MobileBKUHandler {
}
}
}
+
+ @Override
+ public ATrustStatus getStatus() {
+ return (ATrustStatus) getState().getStatus();
+ }
}