@Test public void shouldCreateSHA384Hash() throws IOException { InputStream inputStream = IOUtils.toInputStream("some string to hash"); Hasher sha384Hasher = new SHA384Hasher(); String hashedString = sha384Hasher.hash(inputStream); assertThat(hashedString, is("d32d6343ac065ff185abd04a2f54d1f825d51f4c9af1ee181fd6e7b1042f577fe19f2817c39ddeda52cdc31c0cd0195d")); }
@Override public String hash(InputStream inputStream) throws IOException { return new String(Hex.encodeHex(DigestUtils.sha384(inputStream))); }
SHA384Hasher implements Hasher { @Override public String hash(InputStream inputStream) throws IOException { return new String(Hex.encodeHex(DigestUtils.sha384(inputStream))); } }
SHA384Hasher implements Hasher { @Override public String hash(InputStream inputStream) throws IOException { return new String(Hex.encodeHex(DigestUtils.sha384(inputStream))); }  }
SHA384Hasher implements Hasher { @Override public String hash(InputStream inputStream) throws IOException { return new String(Hex.encodeHex(DigestUtils.sha384(inputStream))); }  @Override String hash(InputStream inputStream); }
SHA384Hasher implements Hasher { @Override public String hash(InputStream inputStream) throws IOException { return new String(Hex.encodeHex(DigestUtils.sha384(inputStream))); }  @Override String hash(InputStream inputStream);  }