@@ -0,0 +1,1220 @@
+/**%0A * Copyright (c) 2015, German Neuroinformatics Node (G-Node)%0A *%0A * All rights reserved.%0A *%0A * Redistribution and use in source and binary forms, with or without%0A * modification, are permitted under the terms of the BSD License. See%0A * LICENSE file in the root of the Project.%0A */%0A%0Apackage org.g_node.srv;%0A%0Aimport java.util.List;%0Aimport java.util.Locale;%0Aimport java.util.stream.Collectors;%0Aimport org.apache.commons.codec.digest.DigestUtils;%0A%0A/**%0A * Class providing various utility methods.%0A *%0A * @author Michael Sonntag (sonntag@bio.lmu.de)%0A */%0Apublic final class Utils %7B%0A    /**%0A     * Method converts a List of Strings to Uppercase, joins the individual entries by a blank space%0A     * and retrieves a hexadecimal String from the resulting input String using the SHA256 hash algorithm.%0A     * @param valueList List of Strings.%0A     * @return Hexadecimal String of the SHA256 encoded input Strings.%0A     */%0A    public static String getHashSHA256(final List%3CString%3E valueList) %7B%0A%0A        final String collectListValues = valueList.stream()%0A                .map(s -%3E s.toUpperCase(Locale.ENGLISH))%0A                .collect(Collectors.joining(%22 %22));%0A%0A        return DigestUtils.sha256Hex(collectListValues);%0A    %7D%0A%0A%7D%0A

add hash256 utility method