diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:32:34 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 19:32:34 +0000 |
commit | acaa6dbc4cb5ede3f640ab2e5eb8bcc56c648b32 (patch) | |
tree | 6e244f8841e368d047d96c2a1f87d4d1bb80e8c6 /pdf-over-gui/src/main/java/at/asit | |
parent | 10488f89a0c8992b951f340cea92a8e00af2dec7 (diff) | |
download | mocca-acaa6dbc4cb5ede3f640ab2e5eb8bcc56c648b32.tar.gz mocca-acaa6dbc4cb5ede3f640ab2e5eb8bcc56c648b32.tar.bz2 mocca-acaa6dbc4cb5ede3f640ab2e5eb8bcc56c648b32.zip |
Move cast to accessor
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@374 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/mobilebku/ATrustHandler.java | 14 |
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(); + } } |