Uses of Class java.math.BigInteger (Java SE 26 & JDK 26)
Description: use: module: java.base, package: java.math, class: BigInteger

# Uses of Class
java.math.BigInteger

Packages that use BigInteger
Package
Description
java.awt.image
Provides classes for creating and modifying images.
java.math
Provides classes for performing arbitrary-precision integer arithmetic (`BigInteger`) and arbitrary-precision decimal arithmetic (`BigDecimal`).
java.security.cert
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
java.security.interfaces
Provides interfaces for generating RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) keys as defined in the RSA Laboratory Technical Note PKCS#1, and DSA (Digital Signature Algorithm) keys as defined in NIST's FIPS-186.
java.security.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.
java.util
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
java.util.random
This package contains classes and interfaces that support a generic API for random number generation.
javax.crypto.interfaces
Provides interfaces for Diffie-Hellman keys as defined in RSA Laboratories' PKCS #3.
javax.crypto.spec
Provides classes and interfaces for key specifications and algorithm parameter specifications.
javax.management.openmbean
Provides the open data types and Open MBean descriptor classes.
javax.security.cert
Provides classes for public key certificates.
javax.xml.crypto.dsig.keyinfo
Classes for parsing and processing `KeyInfo` elements and structures.
javax.xml.datatype
Defines XML/Java Type Mappings.

- ## Uses of BigInteger in java.awt.image

  Methods in java.awt.image that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  IndexColorModel.`getValidPixels()`
  Returns a `BigInteger` that indicates the valid/invalid pixels in the colormap.
  Constructors in java.awt.image with parameters of type BigInteger
  Modifier
  Constructor
  Description
  ``
  `IndexColorModel(int bits, int size, int[] cmap, int start, int transferType, BigInteger validBits)`
  Constructs an `IndexColorModel` from an `int` array where each `int` is comprised of red, green, blue, and alpha components in the default RGB color model format.

- ## Uses of BigInteger in java.math

  Classes in java.math that implement interfaces with type arguments of type BigInteger
  Modifier and Type
  Class
  Description
  `class`
  `BigInteger`
  Immutable arbitrary-precision integers.
  Fields in java.math declared as BigInteger
  Modifier and Type
  Field
  Description
  `static final BigInteger`
  BigInteger.`ONE`
  The BigInteger constant one.
  `static final BigInteger`
  BigInteger.`TEN`
  The BigInteger constant ten.
  `static final BigInteger`
  BigInteger.`TWO`
  The BigInteger constant two.
  `static final BigInteger`
  BigInteger.`ZERO`
  The BigInteger constant zero.
  Methods in java.math that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  BigInteger.`abs()`
  Returns a BigInteger whose value is the absolute value of this BigInteger.
  `BigInteger`
  BigInteger.`add(BigInteger val)`
  Returns a BigInteger whose value is `(this + val)`.
  `BigInteger`
  BigInteger.`and(BigInteger val)`
  Returns a BigInteger whose value is `(this & val)`.
  `BigInteger`
  BigInteger.`andNot(BigInteger val)`
  Returns a BigInteger whose value is `(this & ~val)`.
  `BigInteger`
  BigInteger.`clearBit(int n)`
  Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit cleared.
  `BigInteger`
  BigInteger.`divide(BigInteger val)`
  Returns a BigInteger whose value is `(this / val)`.
  `BigInteger[]`
  BigInteger.`divideAndRemainder(BigInteger val)`
  Returns an array of two BigIntegers containing `(this / val)` followed by `(this % val)`.
  `BigInteger`
  BigInteger.`flipBit(int n)`
  Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped.
  `BigInteger`
  BigInteger.`gcd(BigInteger val)`
  Returns a BigInteger whose value is the greatest common divisor of `abs(this)` and `abs(val)`.
  `BigInteger`
  BigInteger.`max(BigInteger val)`
  Returns the maximum of this BigInteger and `val`.
  `BigInteger`
  BigInteger.`min(BigInteger val)`
  Returns the minimum of this BigInteger and `val`.
  `BigInteger`
  BigInteger.`mod(BigInteger m)`
  Returns a BigInteger whose value is `(this mod m`).
  `BigInteger`
  BigInteger.`modInverse(BigInteger m)`
  Returns a BigInteger whose value is `(this`-1 `mod m)`.
  `BigInteger`
  BigInteger.`modPow(BigInteger exponent, BigInteger m)`
  Returns a BigInteger whose value is `(thisexponent mod m)`.
  `BigInteger`
  BigInteger.`multiply(BigInteger val)`
  Returns a BigInteger whose value is `(this * val)`.
  `BigInteger`
  BigInteger.`negate()`
  Returns a BigInteger whose value is `(-this)`.
  `BigInteger`
  BigInteger.`nextProbablePrime()`
  Returns the first integer greater than this `BigInteger` that is probably prime.
  `BigInteger`
  BigInteger.`not()`
  Returns a BigInteger whose value is `(~this)`.
  `BigInteger`
  BigInteger.`or(BigInteger val)`
  Returns a BigInteger whose value is `(this | val)`.
  `BigInteger`
  BigInteger.`parallelMultiply(BigInteger val)`
  Returns a BigInteger whose value is `(this * val)`.
  `BigInteger`
  BigInteger.`pow(int exponent)`
  Returns a BigInteger whose value is `(thisexponent)`.
  `static BigInteger`
  BigInteger.`probablePrime(int bitLength, Random rnd)`
  Returns a positive BigInteger that is probably prime, with the specified bitLength.
  `BigInteger`
  BigInteger.`remainder(BigInteger val)`
  Returns a BigInteger whose value is `(this % val)`.
  `BigInteger`
  BigInteger.`rootn(int n)`
  Returns the integer `n`th root of this BigInteger.
  `BigInteger[]`
  BigInteger.`rootnAndRemainder(int n)`
  Returns an array of two BigIntegers containing the integer `n`th root `r` of `this` and its remainder `this - r``n`, respectively.
  `BigInteger`
  BigInteger.`setBit(int n)`
  Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set.
  `BigInteger`
  BigInteger.`shiftLeft(int n)`
  Returns a BigInteger whose value is `(this << n)`.
  `BigInteger`
  BigInteger.`shiftRight(int n)`
  Returns a BigInteger whose value is `(this >> n)`.
  `BigInteger`
  BigInteger.`sqrt()`
  Returns the integer square root of this BigInteger.
  `BigInteger[]`
  BigInteger.`sqrtAndRemainder()`
  Returns an array of two BigIntegers containing the integer square root `s` of `this` and its remainder `this - s*s`, respectively.
  `BigInteger`
  BigInteger.`subtract(BigInteger val)`
  Returns a BigInteger whose value is `(this - val)`.
  `BigInteger`
  BigDecimal.`toBigInteger()`
  Converts this `BigDecimal` to a `BigInteger`.
  `BigInteger`
  BigDecimal.`toBigIntegerExact()`
  Converts this `BigDecimal` to a `BigInteger`, checking for lost information.
  `BigInteger`
  BigDecimal.`unscaledValue()`
  Returns a `BigInteger` whose value is the unscaled value of this `BigDecimal`.
  `static BigInteger`
  BigInteger.`valueOf(long val)`
  Returns a BigInteger whose value is equal to that of the specified `long`.
  `BigInteger`
  BigInteger.`xor(BigInteger val)`
  Returns a BigInteger whose value is `(this ^ val)`.
  Methods in java.math with parameters of type BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  BigInteger.`add(BigInteger val)`
  Returns a BigInteger whose value is `(this + val)`.
  `BigInteger`
  BigInteger.`and(BigInteger val)`
  Returns a BigInteger whose value is `(this & val)`.
  `BigInteger`
  BigInteger.`andNot(BigInteger val)`
  Returns a BigInteger whose value is `(this & ~val)`.
  `int`
  BigInteger.`compareTo(BigInteger val)`
  Compares this BigInteger with the specified BigInteger.
  `BigInteger`
  BigInteger.`divide(BigInteger val)`
  Returns a BigInteger whose value is `(this / val)`.
  `BigInteger[]`
  BigInteger.`divideAndRemainder(BigInteger val)`
  Returns an array of two BigIntegers containing `(this / val)` followed by `(this % val)`.
  `BigInteger`
  BigInteger.`gcd(BigInteger val)`
  Returns a BigInteger whose value is the greatest common divisor of `abs(this)` and `abs(val)`.
  `BigInteger`
  BigInteger.`max(BigInteger val)`
  Returns the maximum of this BigInteger and `val`.
  `BigInteger`
  BigInteger.`min(BigInteger val)`
  Returns the minimum of this BigInteger and `val`.
  `BigInteger`
  BigInteger.`mod(BigInteger m)`
  Returns a BigInteger whose value is `(this mod m`).
  `BigInteger`
  BigInteger.`modInverse(BigInteger m)`
  Returns a BigInteger whose value is `(this`-1 `mod m)`.
  `BigInteger`
  BigInteger.`modPow(BigInteger exponent, BigInteger m)`
  Returns a BigInteger whose value is `(thisexponent mod m)`.
  `BigInteger`
  BigInteger.`multiply(BigInteger val)`
  Returns a BigInteger whose value is `(this * val)`.
  `BigInteger`
  BigInteger.`or(BigInteger val)`
  Returns a BigInteger whose value is `(this | val)`.
  `BigInteger`
  BigInteger.`parallelMultiply(BigInteger val)`
  Returns a BigInteger whose value is `(this * val)`.
  `BigInteger`
  BigInteger.`remainder(BigInteger val)`
  Returns a BigInteger whose value is `(this % val)`.
  `BigInteger`
  BigInteger.`subtract(BigInteger val)`
  Returns a BigInteger whose value is `(this - val)`.
  `BigInteger`
  BigInteger.`xor(BigInteger val)`
  Returns a BigInteger whose value is `(this ^ val)`.
  Constructors in java.math with parameters of type BigInteger
  Modifier
  Constructor
  Description
  ``
  `BigDecimal(BigInteger val)`
  Translates a `BigInteger` into a `BigDecimal`.
  ``
  `BigDecimal(BigInteger unscaledVal, int scale)`
  Translates a `BigInteger` unscaled value and an `int` scale into a `BigDecimal`.
  ``
  `BigDecimal(BigInteger unscaledVal, int scale, MathContext mc)`
  Translates a `BigInteger` unscaled value and an `int` scale into a `BigDecimal`, with rounding according to the context settings.
  ``
  `BigDecimal(BigInteger val, MathContext mc)`
  Translates a `BigInteger` into a `BigDecimal` rounding according to the context settings.

- ## Uses of BigInteger in java.security.cert

  Methods in java.security.cert that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  X509CRLSelector.`getMaxCRL()`
  Returns the maxCRLNumber criterion.
  `BigInteger`
  X509CRLSelector.`getMinCRL()`
  Returns the minCRLNumber criterion.
  `abstract BigInteger`
  X509Certificate.`getSerialNumber()`
  Gets the `serialNumber` value from the certificate.
  `BigInteger`
  X509CertSelector.`getSerialNumber()`
  Returns the serialNumber criterion.
  `abstract BigInteger`
  X509CRLEntry.`getSerialNumber()`
  Gets the serial number from this X509CRLEntry, the userCertificate.
  Methods in java.security.cert with parameters of type BigInteger
  Modifier and Type
  Method
  Description
  `abstract X509CRLEntry`
  X509CRL.`getRevokedCertificate(BigInteger serialNumber)`
  Gets the CRL entry, if any, with the given certificate serialNumber.
  `void`
  X509CRLSelector.`setMaxCRLNumber(BigInteger maxCRL)`
  Sets the maxCRLNumber criterion.
  `void`
  X509CRLSelector.`setMinCRLNumber(BigInteger minCRL)`
  Sets the minCRLNumber criterion.
  `void`
  X509CertSelector.`setSerialNumber(BigInteger serial)`
  Sets the serialNumber criterion.

- ## Uses of BigInteger in java.security.interfaces

  Methods in java.security.interfaces that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  RSAMultiPrimePrivateCrtKey.`getCrtCoefficient()`
  Returns the crtCoefficient.
  `BigInteger`
  RSAPrivateCrtKey.`getCrtCoefficient()`
  Returns the crtCoefficient.
  `BigInteger`
  DSAParams.`getG()`
  Returns the base, `g`.
  `BigInteger`
  RSAKey.`getModulus()`
  Returns the modulus.
  `BigInteger`
  DSAParams.`getP()`
  Returns the prime, `p`.
  `BigInteger`
  RSAMultiPrimePrivateCrtKey.`getPrimeExponentP()`
  Returns the primeExponentP.
  `BigInteger`
  RSAPrivateCrtKey.`getPrimeExponentP()`
  Returns the primeExponentP.
  `BigInteger`
  RSAMultiPrimePrivateCrtKey.`getPrimeExponentQ()`
  Returns the primeExponentQ.
  `BigInteger`
  RSAPrivateCrtKey.`getPrimeExponentQ()`
  Returns the primeExponentQ.
  `BigInteger`
  RSAMultiPrimePrivateCrtKey.`getPrimeP()`
  Returns the primeP.
  `BigInteger`
  RSAPrivateCrtKey.`getPrimeP()`
  Returns the primeP.
  `BigInteger`
  RSAMultiPrimePrivateCrtKey.`getPrimeQ()`
  Returns the primeQ.
  `BigInteger`
  RSAPrivateCrtKey.`getPrimeQ()`
  Returns the primeQ.
  `BigInteger`
  RSAPrivateKey.`getPrivateExponent()`
  Returns the private exponent.
  `BigInteger`
  RSAMultiPrimePrivateCrtKey.`getPublicExponent()`
  Returns the public exponent.
  `BigInteger`
  RSAPrivateCrtKey.`getPublicExponent()`
  Returns the public exponent.
  `BigInteger`
  RSAPublicKey.`getPublicExponent()`
  Returns the public exponent.
  `BigInteger`
  DSAParams.`getQ()`
  Returns the subprime, `q`.
  `BigInteger`
  ECPrivateKey.`getS()`
  Returns the private value S.
  `BigInteger`
  XECPublicKey.`getU()`
  Get the u coordinate of the point.
  `BigInteger`
  DSAPrivateKey.`getX()`
  Returns the value of the private key, `x`.
  `BigInteger`
  DSAPublicKey.`getY()`
  Returns the value of the public key, `y`.

- ## Uses of BigInteger in java.security.spec

  Fields in java.security.spec declared as BigInteger
  Modifier and Type
  Field
  Description
  `static final BigInteger`
  RSAKeyGenParameterSpec.`F0`
  The public-exponent value F0 = 3.
  `static final BigInteger`
  RSAKeyGenParameterSpec.`F4`
  The public exponent-value F4 = 65537.
  Methods in java.security.spec that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  EllipticCurve.`getA()`
  Returns the first coefficient `a` of the elliptic curve.
  `BigInteger`
  ECPoint.`getAffineX()`
  Returns the affine x-coordinate `x`.
  `BigInteger`
  ECPoint.`getAffineY()`
  Returns the affine y-coordinate `y`.
  `BigInteger`
  EllipticCurve.`getB()`
  Returns the second coefficient `b` of the elliptic curve.
  `BigInteger`
  RSAMultiPrimePrivateCrtKeySpec.`getCrtCoefficient()`
  Returns the crtCoefficient.
  `final BigInteger`
  RSAOtherPrimeInfo.`getCrtCoefficient()`
  Returns the prime's crtCoefficient.
  `BigInteger`
  RSAPrivateCrtKeySpec.`getCrtCoefficient()`
  Returns the crtCoefficient.
  `final BigInteger`
  RSAOtherPrimeInfo.`getExponent()`
  Returns the prime's exponent.
  `BigInteger`
  DSAParameterSpec.`getG()`
  Returns the base `g`.
  `BigInteger`
  DSAPrivateKeySpec.`getG()`
  Returns the base `g`.
  `BigInteger`
  DSAPublicKeySpec.`getG()`
  Returns the base `g`.
  `BigInteger`
  RSAPrivateKeySpec.`getModulus()`
  Returns the modulus.
  `BigInteger`
  RSAPublicKeySpec.`getModulus()`
  Returns the modulus.
  `BigInteger`
  ECParameterSpec.`getOrder()`
  Returns the order of the generator.
  `BigInteger`
  DSAParameterSpec.`getP()`
  Returns the prime `p`.
  `BigInteger`
  DSAPrivateKeySpec.`getP()`
  Returns the prime `p`.
  `BigInteger`
  DSAPublicKeySpec.`getP()`
  Returns the prime `p`.
  `BigInteger`
  ECFieldFp.`getP()`
  Returns the prime `p` of this prime finite field.
  `final BigInteger`
  RSAOtherPrimeInfo.`getPrime()`
  Returns the prime.
  `BigInteger`
  RSAMultiPrimePrivateCrtKeySpec.`getPrimeExponentP()`
  Returns the primeExponentP.
  `BigInteger`
  RSAPrivateCrtKeySpec.`getPrimeExponentP()`
  Returns the primeExponentP.
  `BigInteger`
  RSAMultiPrimePrivateCrtKeySpec.`getPrimeExponentQ()`
  Returns the primeExponentQ.
  `BigInteger`
  RSAPrivateCrtKeySpec.`getPrimeExponentQ()`
  Returns the primeExponentQ.
  `BigInteger`
  RSAMultiPrimePrivateCrtKeySpec.`getPrimeP()`
  Returns the primeP.
  `BigInteger`
  RSAPrivateCrtKeySpec.`getPrimeP()`
  Returns the primeP.
  `BigInteger`
  RSAMultiPrimePrivateCrtKeySpec.`getPrimeQ()`
  Returns the primeQ.
  `BigInteger`
  RSAPrivateCrtKeySpec.`getPrimeQ()`
  Returns the primeQ.
  `BigInteger`
  RSAPrivateKeySpec.`getPrivateExponent()`
  Returns the private exponent.
  `BigInteger`
  RSAKeyGenParameterSpec.`getPublicExponent()`
  Returns the public-exponent value.
  `BigInteger`
  RSAMultiPrimePrivateCrtKeySpec.`getPublicExponent()`
  Returns the public exponent.
  `BigInteger`
  RSAPrivateCrtKeySpec.`getPublicExponent()`
  Returns the public exponent.
  `BigInteger`
  RSAPublicKeySpec.`getPublicExponent()`
  Returns the public exponent.
  `BigInteger`
  DSAParameterSpec.`getQ()`
  Returns the sub-prime `q`.
  `BigInteger`
  DSAPrivateKeySpec.`getQ()`
  Returns the sub-prime `q`.
  `BigInteger`
  DSAPublicKeySpec.`getQ()`
  Returns the sub-prime `q`.
  `BigInteger`
  ECFieldF2m.`getReductionPolynomial()`
  Returns a BigInteger whose i-th bit corresponds to the i-th coefficient of the reduction polynomial for polynomial basis or null for normal basis.
  `BigInteger`
  ECPrivateKeySpec.`getS()`
  Returns the private value S.
  `BigInteger`
  XECPublicKeySpec.`getU()`
  Get the u coordinate of the point.
  `BigInteger`
  DSAPrivateKeySpec.`getX()`
  Returns the private key `x`.
  `BigInteger`
  DSAPublicKeySpec.`getY()`
  Returns the public key `y`.
  `BigInteger`
  EdECPoint.`getY()`
  Get the y-coordinate of the point.
  Constructors in java.security.spec with parameters of type BigInteger
  Modifier
  Constructor
  Description
  ``
  `DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g)`
  Creates a new DSAParameterSpec with the specified parameter values.
  ``
  `DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)`
  Creates a new DSAPrivateKeySpec with the specified parameter values.
  ``
  `DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)`
  Creates a new DSAPublicKeySpec with the specified parameter values.
  ``
  `ECFieldF2m(int m, BigInteger rp)`
  Creates an elliptic curve characteristic 2 finite field which has 2^`m` elements with polynomial basis.
  ``
  `ECFieldFp(BigInteger p)`
  Creates an elliptic curve prime finite field with the specified prime `p`.
  ``
  `ECParameterSpec(EllipticCurve curve, ECPoint g, BigInteger n, int h)`
  Creates elliptic curve domain parameters based on the specified values.
  ``
  `ECPoint(BigInteger x, BigInteger y)`
  Creates an ECPoint from the specified affine x-coordinate `x` and affine y-coordinate `y`.
  ``
  `ECPrivateKeySpec(BigInteger s, ECParameterSpec params)`
  Creates a new ECPrivateKeySpec with the specified parameter values.
  ``
  `EdECPoint(boolean xOdd, BigInteger y)`
  Construct an EdECPoint.
  ``
  `EllipticCurve(ECField field, BigInteger a, BigInteger b)`
  Creates an elliptic curve with the specified elliptic field `field` and the coefficients `a` and `b`.
  ``
  `EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed)`
  Creates an elliptic curve with the specified elliptic field `field`, the coefficients `a` and `b`, and the `seed` used for curve generation.
  ``
  `RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)`
  Constructs a new `RSAKeyGenParameterSpec` object from the given keysize, public-exponent value, and null key parameters.
  ``
  `RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent, AlgorithmParameterSpec keyParams)`
  Constructs a new `RSAKeyGenParameterSpec` object from the given keysize, public-exponent value, and key parameters.
  ``
  `RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo)`
  Creates a new `RSAMultiPrimePrivateCrtKeySpec`.
  ``
  `RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo, AlgorithmParameterSpec keyParams)`
  Creates a new `RSAMultiPrimePrivateCrtKeySpec` with additional key parameters.
  ``
  `RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient)`
  Creates a new `RSAOtherPrimeInfo` given the prime, primeExponent, and crtCoefficient as defined in PKCS#1.
  ``
  `RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)`
  Creates a new `RSAPrivateCrtKeySpec`.
  ``
  `RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, AlgorithmParameterSpec keyParams)`
  Creates a new `RSAPrivateCrtKeySpec` with additional key parameters.
  ``
  `RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)`
  Creates a new RSAPrivateKeySpec.
  ``
  `RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent, AlgorithmParameterSpec params)`
  Creates a new RSAPrivateKeySpec with additional key parameters.
  ``
  `RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)`
  Creates a new RSAPublicKeySpec.
  ``
  `RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params)`
  Creates a new RSAPublicKeySpec with additional key parameters.
  ``
  `XECPublicKeySpec(AlgorithmParameterSpec params, BigInteger u)`
  Construct a public key spec using the supplied parameters and u coordinate.

- ## Uses of BigInteger in java.util

  Methods in java.util that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  Scanner.`nextBigInteger()`
  Scans the next token of the input as a `BigInteger`.
  `BigInteger`
  Scanner.`nextBigInteger(int radix)`
  Scans the next token of the input as a `BigInteger`.

- ## Uses of BigInteger in java.util.random

  Methods in java.util.random that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  RandomGeneratorFactory.`period()`
  Return the period of the algorithm used by the random number generator.

- ## Uses of BigInteger in javax.crypto.interfaces

  Methods in javax.crypto.interfaces that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  DHPrivateKey.`getX()`
  Returns the private value, `x`.
  `BigInteger`
  DHPublicKey.`getY()`
  Returns the public value, `y`.

- ## Uses of BigInteger in javax.crypto.spec

  Methods in javax.crypto.spec that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  DHParameterSpec.`getG()`
  Returns the base generator `g`.
  `BigInteger`
  DHPrivateKeySpec.`getG()`
  Returns the base generator `g`.
  `BigInteger`
  DHPublicKeySpec.`getG()`
  Returns the base generator `g`.
  `BigInteger`
  DHParameterSpec.`getP()`
  Returns the prime modulus `p`.
  `BigInteger`
  DHPrivateKeySpec.`getP()`
  Returns the prime modulus `p`.
  `BigInteger`
  DHPublicKeySpec.`getP()`
  Returns the prime modulus `p`.
  `BigInteger`
  DHPrivateKeySpec.`getX()`
  Returns the private value `x`.
  `BigInteger`
  DHPublicKeySpec.`getY()`
  Returns the public value `y`.
  Constructors in javax.crypto.spec with parameters of type BigInteger
  Modifier
  Constructor
  Description
  ``
  `DHParameterSpec(BigInteger p, BigInteger g)`
  Constructs a parameter set for Diffie-Hellman, using a prime modulus `p` and a base generator `g`.
  ``
  `DHParameterSpec(BigInteger p, BigInteger g, int l)`
  Constructs a parameter set for Diffie-Hellman, using a prime modulus `p`, a base generator `g`, and the size in bits, `l`, of the random exponent (private value).
  ``
  `DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)`
  Constructor that takes a private value `x`, a prime modulus `p`, and a base generator `g`.
  ``
  `DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)`
  Constructor that takes a public value `y`, a prime modulus `p`, and a base generator `g`.

- ## Uses of BigInteger in javax.management.openmbean

  Fields in javax.management.openmbean with type parameters of type BigInteger
  Modifier and Type
  Field
  Description
  `static final SimpleType<BigInteger>`
  SimpleType.`BIGINTEGER`
  The `SimpleType` instance describing values whose Java class name is `java.math.BigInteger`.

- ## Uses of BigInteger in javax.security.cert

  Methods in javax.security.cert that return BigInteger
  Modifier and Type
  Method
  Description
  `abstract BigInteger`
  X509Certificate.`getSerialNumber()`
  Deprecated, for removal: This API element is subject to removal in a future version.
  Gets the `serialNumber` value from the certificate.

- ## Uses of BigInteger in javax.xml.crypto.dsig.keyinfo

  Methods in javax.xml.crypto.dsig.keyinfo that return BigInteger
  Modifier and Type
  Method
  Description
  `BigInteger`
  X509IssuerSerial.`getSerialNumber()`
  Returns the serial number of this `X509IssuerSerial`.
  Methods in javax.xml.crypto.dsig.keyinfo with parameters of type BigInteger
  Modifier and Type
  Method
  Description
  `abstract X509IssuerSerial`
  KeyInfoFactory.`newX509IssuerSerial(String issuerName, BigInteger serialNumber)`
  Creates an `X509IssuerSerial` from the specified X.500 issuer distinguished name and serial number.

- ## Uses of BigInteger in javax.xml.datatype

  Methods in javax.xml.datatype that return BigInteger
  Modifier and Type
  Method
  Description
  `abstract BigInteger`
  XMLGregorianCalendar.`getEon()`
  Returns the high order component for XML Schema 1.0 dateTime datatype field for `year`.
  `abstract BigInteger`
  XMLGregorianCalendar.`getEonAndYear()`
  Returns the XML Schema 1.0 dateTime datatype field for `year`.
  Methods in javax.xml.datatype with parameters of type BigInteger
  Modifier and Type
  Method
  Description
  `abstract Duration`
  DatatypeFactory.`newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds)`
  Obtain a new instance of a `Duration` specifying the `Duration` as isPositive, years, months, days, hours, minutes, seconds.
  `Duration`
  DatatypeFactory.`newDurationDayTime(boolean isPositive, BigInteger day, BigInteger hour, BigInteger minute, BigInteger second)`
  Create a `Duration` of type `xdt:dayTimeDuration` using the specified `day`, `hour`, `minute` and `second` as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.
  `Duration`
  DatatypeFactory.`newDurationYearMonth(boolean isPositive, BigInteger year, BigInteger month)`
  Create a `Duration` of type `xdt:yearMonthDuration` using the specified `year` and `month` as defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.
  `abstract XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendar(BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone)`
  Constructor allowing for complete value spaces allowed by W3C XML Schema 1.0 recommendation for xsd:dateTime and related builtin datatypes.
  `abstract void`
  XMLGregorianCalendar.`setYear(BigInteger year)`
  Set low and high order component of XSD `dateTime` year field.