summaryrefslogtreecommitdiff
path: root/smcc/src/main/java/at/gv/egiz/smcc/SignatureCard.java
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-11-11 12:16:00 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2008-11-11 12:16:00 +0000
commite4a47aa9393d74647f4f0c66b54dc4519fed492f (patch)
treedcacbccfc7b4e777854ee6b9b1c74f84f7fc7915 /smcc/src/main/java/at/gv/egiz/smcc/SignatureCard.java
parent82c59c9d862d3ee9ad43fdc1509d0b5a61cc107c (diff)
downloadmocca-e4a47aa9393d74647f4f0c66b54dc4519fed492f.tar.gz
mocca-e4a47aa9393d74647f4f0c66b54dc4519fed492f.tar.bz2
mocca-e4a47aa9393d74647f4f0c66b54dc4519fed492f.zip
Interrupt in waitForAction (applet closed)
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@162 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'smcc/src/main/java/at/gv/egiz/smcc/SignatureCard.java')
-rw-r--r--smcc/src/main/java/at/gv/egiz/smcc/SignatureCard.java17
1 files changed, 14 insertions, 3 deletions
diff --git a/smcc/src/main/java/at/gv/egiz/smcc/SignatureCard.java b/smcc/src/main/java/at/gv/egiz/smcc/SignatureCard.java
index 37bd7cf9..b6a453df 100644
--- a/smcc/src/main/java/at/gv/egiz/smcc/SignatureCard.java
+++ b/smcc/src/main/java/at/gv/egiz/smcc/SignatureCard.java
@@ -57,6 +57,7 @@ public interface SignatureCard {
}
}
+ @Override
public boolean equals(Object obj) {
if (obj instanceof String) {
return obj.equals(keyboxName_);
@@ -77,7 +78,7 @@ public interface SignatureCard {
public void init(Card card);
public byte[] getCertificate(KeyboxName keyboxName)
- throws SignatureCardException;
+ throws SignatureCardException, InterruptedException;
public void disconnect(boolean reset);
@@ -88,12 +89,22 @@ public interface SignatureCard {
* @param domainId may be null.
* @return
* @throws SignatureCardException
+ * @throws InterruptedException if applet is destroyed while in pin dialog
*/
public byte[] getInfobox(String infobox, PINProvider provider, String domainId)
- throws SignatureCardException;
+ throws SignatureCardException, InterruptedException;
+ /**
+ *
+ * @param hash
+ * @param keyboxName
+ * @param provider
+ * @return
+ * @throws at.gv.egiz.smcc.SignatureCardException
+ * @throws java.lang.InterruptedException if applet is destroyed while in pin dialog
+ */
public byte[] createSignature(byte[] hash, KeyboxName keyboxName,
- PINProvider provider) throws SignatureCardException;
+ PINProvider provider) throws SignatureCardException, InterruptedException;
/**
* Sets the local for evtl. required callbacks (e.g. PINSpec)