public String calculateSha1ByNameVersionAndType ( String name , String version , DependencyType dependencyType ) throws IOException { String sha1ToCalc = name + UNDERSCORE + version + UNDERSCORE + dependencyType . toString ( ) ; return calculateByteArraySHA1 ( sha1ToCalc . getBytes ( StandardCharsets . UTF_8 ) ) ; }
Calculates SHA - 1 for library by name version and dependencyType