Package com.yubico.yubikit.core.util
Class ByteUtils
java.lang.Object
com.yubico.yubikit.core.util.ByteUtils
Used internally in YubiKit, don't use from applications.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]intToLength(BigInteger value, int length) Serializes a BigInteger as an unsigned integer of the given length.
-
Constructor Details
-
ByteUtils
public ByteUtils()
-
-
Method Details
-
intToLength
Serializes a BigInteger as an unsigned integer of the given length.- Parameters:
value- the integer to serializelength- the length of the byte[] to return- Returns:
- the value as an unsigned integer
-