Class ByteUtils

java.lang.Object
com.yubico.yubikit.core.util.ByteUtils

public final class ByteUtils extends Object
Used internally in YubiKit, don't use from applications.
  • Constructor Details

    • ByteUtils

      public ByteUtils()
  • Method Details

    • intToLength

      public static byte[] intToLength(BigInteger value, int length)
      Serializes a BigInteger as an unsigned integer of the given length.
      Parameters:
      value - the integer to serialize
      length - the length of the byte[] to return
      Returns:
      the value as an unsigned integer