예제 #1
0
 @Override
 public String getDigest(final DigestAlgorithm digestAlgorithm) {
   final InputStream inputStream = openStream();
   final byte[] digestBytes = DSSUtils.digest(digestAlgorithm, inputStream);
   IOUtils.closeQuietly(inputStream);
   final String base64Encode = Base64.encodeBase64String(digestBytes);
   return base64Encode;
 }
예제 #2
0
 @Override
 public String getDigest(final DigestAlgorithm digestAlgorithm) {
   final byte[] digestBytes = DSSUtils.digest(digestAlgorithm, bytes);
   final String base64Encode = Base64.encodeBase64String(digestBytes);
   return base64Encode;
 }