@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; }
@Override public String getDigest(final DigestAlgorithm digestAlgorithm) { final byte[] digestBytes = DSSUtils.digest(digestAlgorithm, bytes); final String base64Encode = Base64.encodeBase64String(digestBytes); return base64Encode; }