public class ChecksumUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ChecksumUtils.CRC32CCalculation |
static class |
ChecksumUtils.MD5Calculation |
static class |
ChecksumUtils.SHA256Calculation |
static class |
ChecksumUtils.SHA384Calculation |
Modifier and Type | Method and Description |
---|---|
static ChecksumUtils.CRC32CCalculation |
calculateCrc32c(InputStream stream,
Long contentLength)
Calculate the CRC32C checksum of the provided input stream.
|
static String |
calculateCrc32cChecksum(byte[] data)
Calculate the CRC32C checksum of the provided byte array.
|
static ChecksumUtils.MD5Calculation |
calculateMd5(InputStream stream,
Long contentLength)
Calculate the MD5 checksum of the provided input stream.
|
static ChecksumUtils.SHA256Calculation |
calculateSha256(InputStream stream,
Long contentLength)
Calculate the SHA-256 checksum of the provided input stream.
|
static ChecksumUtils.SHA384Calculation |
calculateSha384(InputStream stream,
Long contentLength)
Calculate the SHA-384 checksum of the provided input stream.
|
static String |
getChecksumFromUploadResponse(UploadManager.UploadResponse uploadResponse,
ChecksumAlgorithm checksumAlgorithm,
boolean isMultipart) |
static ChecksumInfo |
getExpectedChecksumAndAlgorithm(GetObjectResponse response) |
static String |
getResponseChecksum(BmcResponse response,
ChecksumAlgorithm algorithm,
boolean isMultipart) |
public static ChecksumUtils.MD5Calculation calculateMd5(InputStream stream, Long contentLength)
Calculate the MD5 checksum of the provided input stream.
public static ChecksumUtils.SHA384Calculation calculateSha384(InputStream stream, Long contentLength)
Calculate the SHA-384 checksum of the provided input stream.
public static ChecksumUtils.SHA256Calculation calculateSha256(InputStream stream, Long contentLength)
Calculate the SHA-256 checksum of the provided input stream.
public static ChecksumUtils.CRC32CCalculation calculateCrc32c(InputStream stream, Long contentLength)
Calculate the CRC32C checksum of the provided input stream.
public static String calculateCrc32cChecksum(byte[] data)
Calculate the CRC32C checksum of the provided byte array.
public static ChecksumInfo getExpectedChecksumAndAlgorithm(GetObjectResponse response)
public static String getChecksumFromUploadResponse(UploadManager.UploadResponse uploadResponse, ChecksumAlgorithm checksumAlgorithm, boolean isMultipart)
public static String getResponseChecksum(BmcResponse response, ChecksumAlgorithm algorithm, boolean isMultipart)
Copyright © 2016–2024. All rights reserved.