Package com.mongodb.internal
Class HexUtils
java.lang.Object
com.mongodb.internal.HexUtils
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
This class is not part of the public API and may be removed or changed at any time.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
hexMD5
(byte[] data) Deprecated.Produce hex representation of the MD5 digest of a byte array.static String
hexMD5
(ByteBuffer buf, int offset, int len) Deprecated.Produce hex representation of the MD5 digest of a byte array.static String
toHex
(byte[] bytes) Deprecated.Converts the given byte buffer to a hexadecimal string usingInteger.toHexString(int)
.
-
Constructor Details
-
HexUtils
public HexUtils()Deprecated.
-
-
Method Details
-
toHex
Deprecated.Converts the given byte buffer to a hexadecimal string usingInteger.toHexString(int)
.- Parameters:
bytes
- the bytes to convert to hex- Returns:
- a String containing the hex representation of the given bytes.
-
hexMD5
Deprecated.Produce hex representation of the MD5 digest of a byte array.- Parameters:
data
- bytes to digest- Returns:
- hex string of the MD5 digest
-
hexMD5
Deprecated.Produce hex representation of the MD5 digest of a byte array.- Parameters:
buf
- byte buffer containing the bytes to digestoffset
- the position to start reading bytes fromlen
- the number of bytes to read from the buffer- Returns:
- hex string of the MD5 digest
-