Changed the ToySignature test file to match the new Signature interface.

vbdev2
Hai Brenner 2016-06-28 11:26:50 +03:00
parent 4379921445
commit 438df78e36
1 changed files with 7 additions and 4 deletions

View File

@ -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();