diff options
author | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-11-18 08:03:35 +0000 |
---|---|---|
committer | clemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4> | 2008-11-18 08:03:35 +0000 |
commit | 28e81afd92a6568ff78736b72c5257a86c0b9b91 (patch) | |
tree | 012aaf1c1fc8f79c47309950f5be437c9f58a6a9 /smccSTAL/src/main/java/at | |
parent | e77343708ec9b74aed7256d72982e4fce4be80d8 (diff) | |
download | mocca-28e81afd92a6568ff78736b72c5257a86c0b9b91.tar.gz mocca-28e81afd92a6568ff78736b72c5257a86c0b9b91.tar.bz2 mocca-28e81afd92a6568ff78736b72c5257a86c0b9b91.zip |
GUI refactoring 1
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@177 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smccSTAL/src/main/java/at')
-rw-r--r-- | smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java b/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java index 77ee45b6..26905f50 100644 --- a/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java +++ b/smccSTAL/src/main/java/at/gv/egiz/bku/smccstal/SignRequestHandler.java @@ -130,67 +130,6 @@ public abstract class SignRequestHandler extends AbstractRequestHandler implemen // @Override // public String providePIN(PINSpec spec, int retries) { -// if (retryCounter++ > 0) { -// log.info("PIN wrong retrying ..."); -// gui.showSignaturePINRetryDialog(spec, retries, this, "sign", this, -// "cancel", this, "hashData"); -// } else { -// gui.showSignaturePINDialog(spec, this, "sign", this, "cancel", this, -// "hashData"); -// } -// do { -// waitForAction(); -// if (actionCommand.equals("cancel")) { -// return null; -// } else if (actionCommand.equals("hashData")) { -// if (signedInfo != null) { -// try { -// gui.showWaitDialog(null); -// if (hashDataInputs == null || hashDataInputs.size() == 0) { -// HashMap<String, ReferenceType> signedReferences = new HashMap<String, ReferenceType>(); -// for (ReferenceType reference : signedInfo.getReference()) { -// //don't get Manifest, QualifyingProperties, ... -// if (reference.getType() == null) { -// signedReferences.put(reference.getId(), reference); -// } -// } -// hashDataInputs = getHashDataInputs(signedReferences.keySet()); -// for (HashDataInput hashDataInput : hashDataInputs) { -// ReferenceType reference = signedReferences.get(hashDataInput.getReferenceId()); -// String algorithm = reference.getDigestMethod().getAlgorithm(); -// MessageDigest md = MessageDigest.getInstance(algorithm); -// DigestInputStream dis = new DigestInputStream(hashDataInput.getHashDataInput(), md); -// while(dis.read() != -1) ; -// byte[] digestValue = md.digest(); -// boolean valid = reference.getDigestValue().equals(digestValue); -// } -// } -// gui.showHashDataInputDialog(hashDataInputs, this, "ok"); -// } catch (Exception ex) { -// //FIXME localize messages -// log.error("Failed to obtain HashDataInputs: " + ex.getMessage()); -// gui.showErrorDialog("Failed to obtain HashDataInputs: " + ex.getMessage(), this, "ok"); -// } -// } else { -// //FIXME get all hashdatainputs -// gui.showErrorDialog("Failed to obtain HashDataInputs: No dsig:SignedInfo provided.", this, "ok"); -// } -// } else if (actionCommand.equals("sign")) { -// return new String(gui.getPin()); -// } else if (actionCommand.equals("ok")) { -// gui.showSignaturePINDialog(spec, this, "sign", this, "cancel", this, -// "hashData"); -// } -// } while (true); -// } - -// @Override -// public SMCCSTALRequestHandler newInstance() { -// return new SignRequestHandler(); -// } - - - class STALPinProvider implements PINProvider { @@ -236,26 +175,6 @@ public abstract class SignRequestHandler extends AbstractRequestHandler implemen gui.showErrorDialog(BKUGUIFacade.ERR_DISPLAY_HASHDATA, new Object[] {ex.getMessage()}, SignRequestHandler.this, "error"); } - // OLD HASHDATA DISPLAY (in applet), - // register SignRequestHandler.this as hashdataListener to use -// if (signedInfo != null) { -// try { -// if (hashDataInputs == null || hashDataInputs.size() == 0) { -// hashDataInputs = getCashedHashDataInputs(signedInfo.getReference()); -// } -// gui.showHashDataInputDialog(hashDataInputs, SignRequestHandler.this, "ok"); -// } catch (DigestException ex) { -// log.error("Bad digest value: " + ex.getMessage()); -// gui.showErrorDialog(BKUGUIFacade.ERR_INVALID_HASH, new Object[] {ex.getMessage()}); -// } catch (Exception ex) { -// //FIXME localize messages -// log.error("Failed to obtain HashDataInputs: " + ex.getMessage()); -// gui.showErrorDialog(BKUGUIFacade.ERR_NO_HASHDATA, new Object[] {ex.getMessage()}, SignRequestHandler.this, "ok"); -// } -// } else { -// //FIXME get all hashdatainputs -// gui.showErrorDialog(BKUGUIFacade.ERR_NO_HASHDATA, new Object[] {"No dsig:SignedInfo provided"}, SignRequestHandler.this, "ok"); -// } } else if (actionCommand.equals("sign")) { retryCounter++; return new String(gui.getPin()); |