IntegerType extends AbstractDERType implements DEREncoder { public static BigInteger decodeUnsigned(final DERBuffer encoded) { return new BigInteger(1, encoded.getRemainingBytes()); } IntegerType(final BigInteger item);  IntegerType(final int item);  IntegerType(final DERTag tag, final BigInteger item);  IntegerType(final DERTag tag, final int item); @Override byte[] encode(); static BigInteger decode(final DERBuffer encoded); static BigInteger decodeUnsigned(final DERBuffer encoded); static int decodeUnsignedPrimitive(final DERBuffer encoded); static byte[] toBytes(final BigInteger i);  }
@Test(groups = "asn1", dataProvider = "ints") public void decodeUnsigned( final byte[] bytes, final BigInteger expected, final BigInteger unsigned, final int unsignedPrim) throws Exception { Assert.assertEquals(IntegerType.decodeUnsigned(new DefaultDERBuffer(bytes)), unsigned); }