From acaa6dbc4cb5ede3f640ab2e5eb8bcc56c648b32 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 19:32:34 +0000 Subject: Move cast to accessor git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@374 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../gui/workflow/states/mobilebku/ATrustHandler.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'pdf-over-gui/src') 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(); + } } -- cgit v1.2.3