com.nimbusds.jose.util
Class BigIntegerUtils

java.lang.Object
  extended by com.nimbusds.jose.util.BigIntegerUtils

public class BigIntegerUtils
extends Object

Big integer utilities.

Version:
$version$ (2013-03-21)
Author:
Vladimir Dzhuvinov

Method Summary
static byte[] toBytesUnsigned(BigInteger bigInt)
          Returns a byte array representation of the specified big integer without the sign bit.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toBytesUnsigned

public static byte[] toBytesUnsigned(BigInteger bigInt)
Returns a byte array representation of the specified big integer without the sign bit.

Parameters:
bigInt - The big integer to be converted. Must not be null.
Returns:
A byte array representation of the big integer, without the sign bit.


Copyright © 2013 NimbusDS. All Rights Reserved.