Class UnsignedNumberUtil

java.lang.Object
com.webauthn4j.util.UnsignedNumberUtil

public class UnsignedNumberUtil extends Object
A Utility class for unsigned number
  • Field Details

  • Method Details

    • getUnsignedByte

      public static short getUnsignedByte(byte value)
    • getUnsignedShort

      public static int getUnsignedShort(@NotNull @NotNull ByteBuffer byteBuffer)
    • getUnsignedShort

      public static int getUnsignedShort(@NotNull @org.jetbrains.annotations.NotNull byte[] bytes)
    • getUnsignedInt

      public static long getUnsignedInt(@NotNull @NotNull ByteBuffer byteBuffer)
    • getUnsignedInt

      public static long getUnsignedInt(@NotNull @org.jetbrains.annotations.NotNull byte[] bytes)
    • getUnsignedLong

      @NotNull public static @NotNull BigInteger getUnsignedLong(@NotNull @NotNull ByteBuffer byteBuffer)
    • toBytes

      @NotNull public static @org.jetbrains.annotations.NotNull byte[] toBytes(int ushortValue)
    • toBytes

      @NotNull public static @org.jetbrains.annotations.NotNull byte[] toBytes(long uintValue)
    • toBytes

      @NotNull public static @org.jetbrains.annotations.NotNull byte[] toBytes(@NotNull @NotNull BigInteger unsignedLongValue)
    • isWithinUnsignedByte

      public static boolean isWithinUnsignedByte(int value)
    • isWithinUnsignedShort

      public static boolean isWithinUnsignedShort(int value)
    • isWithinUnsignedInt

      public static boolean isWithinUnsignedInt(long value)
    • isWithinUnsignedLong

      public static boolean isWithinUnsignedLong(@NotNull @NotNull BigInteger value)