Latest bnd code
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1350613 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundleplugin/src/main/java/aQute/libg/cryptography/Verifier.java b/bundleplugin/src/main/java/aQute/libg/cryptography/Verifier.java
index 5506ece..1005e0a 100644
--- a/bundleplugin/src/main/java/aQute/libg/cryptography/Verifier.java
+++ b/bundleplugin/src/main/java/aQute/libg/cryptography/Verifier.java
@@ -3,30 +3,31 @@
import java.io.*;
import java.security.*;
-
public class Verifier extends OutputStream {
- final Signature signature;
- final Digest d;
-
+ final Signature signature;
+ final Digest d;
+
Verifier(Signature s, Digest d) {
this.signature = s;
this.d = d;
}
-
+
@Override
- public void write( byte[] buffer, int offset, int length) throws IOException {
+ public void write(byte[] buffer, int offset, int length) throws IOException {
try {
signature.update(buffer, offset, length);
- } catch (SignatureException e) {
+ }
+ catch (SignatureException e) {
throw new IOException(e.getLocalizedMessage());
}
}
@Override
- public void write( int b) throws IOException {
+ public void write(int b) throws IOException {
try {
signature.update((byte) b);
- } catch (SignatureException e) {
+ }
+ catch (SignatureException e) {
throw new IOException(e.getLocalizedMessage());
}
}
@@ -34,5 +35,5 @@
public boolean verify() throws Exception {
return signature.verify(d.digest());
}
-
+
}