From 438df78e368a308e8ab1167764509d9180f2724c Mon Sep 17 00:00:00 2001 From: Hai Brenner Date: Tue, 28 Jun 2016 11:26:50 +0300 Subject: [PATCH] Changed the ToySignature test file to match the new Signature interface. --- .../src/main/java/meerkat/voting/ToySignature.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/voting-booth/src/main/java/meerkat/voting/ToySignature.java b/voting-booth/src/main/java/meerkat/voting/ToySignature.java index e2473c9..8b24a3c 100644 --- a/voting-booth/src/main/java/meerkat/voting/ToySignature.java +++ b/voting-booth/src/main/java/meerkat/voting/ToySignature.java @@ -4,13 +4,11 @@ import com.google.protobuf.ByteString; import com.google.protobuf.Message; import meerkat.crypto.DigitalSignature; import meerkat.protobuf.Crypto.*; +import meerkat.protobuf.Crypto.Signature; import java.io.IOException; import java.io.InputStream; -import java.security.InvalidKeyException; -import java.security.KeyStore; -import java.security.SignatureException; -import java.security.UnrecoverableKeyException; +import java.security.*; import java.security.cert.CertificateException; /** @@ -69,6 +67,11 @@ public class ToySignature implements DigitalSignature { throw new UnsupportedOperationException(); } + @Override + public KeyStore.Builder getPKCS12KeyStoreBuilder(InputStream keyStream, char[] password) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException { + throw new UnsupportedOperationException(); + } + @Override public void loadSigningCertificate(KeyStore.Builder keyStoreBuilder) throws IOException, CertificateException, UnrecoverableKeyException { throw new UnsupportedOperationException();