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(@NonNull ByteBuffer byteBuffer)
    • getUnsignedShort

      public static int getUnsignedShort(@org.checkerframework.checker.nullness.qual.NonNull byte[] bytes)
    • getUnsignedInt

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

      public static long getUnsignedInt(@org.checkerframework.checker.nullness.qual.NonNull byte[] bytes)
    • getUnsignedLong

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

      public static @org.checkerframework.checker.nullness.qual.NonNull byte[] toBytes(int ushortValue)
    • toBytes

      public static @org.checkerframework.checker.nullness.qual.NonNull byte[] toBytes(long uintValue)
    • toBytes

      public static @org.checkerframework.checker.nullness.qual.NonNull byte[] toBytes(@NonNull 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(@NonNull BigInteger value)