From 7a6eabd80d2c57cb8018eb4eb98fb46b765ec189 Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 3 Oct 2012 19:50:49 +0000 Subject: close streams git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1146 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4 --- BKUOnline/src/main/java/at/gv/egiz/mocca/id/PersonalIdentifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BKUOnline') diff --git a/BKUOnline/src/main/java/at/gv/egiz/mocca/id/PersonalIdentifier.java b/BKUOnline/src/main/java/at/gv/egiz/mocca/id/PersonalIdentifier.java index 15f3084d..578d72ef 100644 --- a/BKUOnline/src/main/java/at/gv/egiz/mocca/id/PersonalIdentifier.java +++ b/BKUOnline/src/main/java/at/gv/egiz/mocca/id/PersonalIdentifier.java @@ -71,7 +71,7 @@ public class PersonalIdentifier { ByteArrayOutputStream os = new ByteArrayOutputStream(); Base64OutputStream bos = new Base64OutputStream(os); bos.write(md.digest((value + '+' + domainId).getBytes("ISO-8859-1"))); - bos.flush(); + bos.close(); return new PersonalIdentifier(domainId, os.toString("ASCII")); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); -- cgit v1.2.3