Uses of Class
java.math.BigInteger
Packages that use BigInteger
Package
Description
Provides classes for creating and modifying images.
Provides classes for performing arbitrary-precision integer
arithmetic (
BigInteger) and arbitrary-precision decimal
arithmetic (BigDecimal).Provides classes and interfaces for parsing and managing
certificates, certificate revocation lists (CRLs), and
certification paths.
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.
Provides classes and interfaces for key specifications and algorithm
parameter specifications.
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.
This package contains classes and interfaces that support a generic API
for random number generation.
Provides interfaces for Diffie-Hellman keys as defined in RSA
Laboratories' PKCS #3.
Provides classes and interfaces for key specifications and
algorithm parameter specifications.
Provides the open data types and Open MBean descriptor classes.
Provides classes for public key certificates.
Classes for parsing and processing
KeyInfo elements and structures.
Defines XML/Java Type Mappings.
-
Uses of BigInteger in java.awt.image
Methods in java.awt.image that return BigIntegerModifier and TypeMethodDescriptionIndexColorModel.getValidPixels()Returns aBigIntegerthat indicates the valid/invalid pixels in the colormap.Constructors in java.awt.image with parameters of type BigIntegerModifierConstructorDescriptionIndexColorModel(int bits, int size, int[] cmap, int start, int transferType, BigInteger validBits) Constructs anIndexColorModelfrom anintarray where eachintis comprised of red, green, blue, and alpha components in the default RGB color model format. -
Uses of BigInteger in java.math
Fields in java.math declared as BigIntegerModifier and TypeFieldDescriptionstatic final BigIntegerBigInteger.ONEThe BigInteger constant one.static final BigIntegerBigInteger.TENThe BigInteger constant ten.static final BigIntegerBigInteger.TWOThe BigInteger constant two.static final BigIntegerBigInteger.ZEROThe BigInteger constant zero.Methods in java.math that return BigIntegerModifier and TypeMethodDescriptionBigInteger.abs()Returns a BigInteger whose value is the absolute value of this BigInteger.BigInteger.add(BigInteger val) Returns a BigInteger whose value is(this + val).BigInteger.and(BigInteger val) Returns a BigInteger whose value is(this & val).BigInteger.andNot(BigInteger val) Returns a BigInteger whose value is(this & ~val).BigInteger.clearBit(int n) Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit cleared.BigInteger.divide(BigInteger val) Returns a BigInteger whose value is(this / val).BigInteger.divideAndRemainder(BigInteger val) Returns an array of two BigIntegers containing(this / val)followed by(this % val).BigInteger.flipBit(int n) Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped.BigInteger.gcd(BigInteger val) Returns a BigInteger whose value is the greatest common divisor ofabs(this)andabs(val).BigInteger.max(BigInteger val) Returns the maximum of this BigInteger andval.BigInteger.min(BigInteger val) Returns the minimum of this BigInteger andval.BigInteger.mod(BigInteger m) Returns a BigInteger whose value is(this mod m).BigInteger.modInverse(BigInteger m) Returns a BigInteger whose value is(this-1mod m).BigInteger.modPow(BigInteger exponent, BigInteger m) Returns a BigInteger whose value is(thisexponent mod m).BigInteger.multiply(BigInteger val) Returns a BigInteger whose value is(this * val).BigInteger.negate()Returns a BigInteger whose value is(-this).BigInteger.nextProbablePrime()Returns the first integer greater than thisBigIntegerthat is probably prime.BigInteger.not()Returns a BigInteger whose value is(~this).BigInteger.or(BigInteger val) Returns a BigInteger whose value is(this | val).BigInteger.pow(int exponent) Returns a BigInteger whose value is(thisexponent).static BigIntegerBigInteger.probablePrime(int bitLength, Random rnd) Returns a positive BigInteger that is probably prime, with the specified bitLength.BigInteger.remainder(BigInteger val) Returns a BigInteger whose value is(this % val).BigInteger.setBit(int n) Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set.BigInteger.shiftLeft(int n) Returns a BigInteger whose value is(this << n).BigInteger.shiftRight(int n) Returns a BigInteger whose value is(this >> n).BigInteger.sqrt()Returns the integer square root of this BigInteger.BigInteger.sqrtAndRemainder()Returns an array of two BigIntegers containing the integer square rootsofthisand its remainderthis - s*s, respectively.BigInteger.subtract(BigInteger val) Returns a BigInteger whose value is(this - val).BigDecimal.toBigInteger()Converts thisBigDecimalto aBigInteger.BigDecimal.toBigIntegerExact()Converts thisBigDecimalto aBigInteger, checking for lost information.BigDecimal.unscaledValue()Returns aBigIntegerwhose value is the unscaled value of thisBigDecimal.static BigIntegerBigInteger.valueOf(long val) Returns a BigInteger whose value is equal to that of the specifiedlong.BigInteger.xor(BigInteger val) Returns a BigInteger whose value is(this ^ val).Methods in java.math with parameters of type BigIntegerModifier and TypeMethodDescriptionBigInteger.add(BigInteger val) Returns a BigInteger whose value is(this + val).BigInteger.and(BigInteger val) Returns a BigInteger whose value is(this & val).BigInteger.andNot(BigInteger val) Returns a BigInteger whose value is(this & ~val).intBigInteger.compareTo(BigInteger val) Compares this BigInteger with the specified BigInteger.BigInteger.divide(BigInteger val) Returns a BigInteger whose value is(this / val).BigInteger.divideAndRemainder(BigInteger val) Returns an array of two BigIntegers containing(this / val)followed by(this % val).BigInteger.gcd(BigInteger val) Returns a BigInteger whose value is the greatest common divisor ofabs(this)andabs(val).BigInteger.max(BigInteger val) Returns the maximum of this BigInteger andval.BigInteger.min(BigInteger val) Returns the minimum of this BigInteger andval.BigInteger.mod(BigInteger m) Returns a BigInteger whose value is(this mod m).BigInteger.modInverse(BigInteger m) Returns a BigInteger whose value is(this-1mod m).BigInteger.modPow(BigInteger exponent, BigInteger m) Returns a BigInteger whose value is(thisexponent mod m).BigInteger.multiply(BigInteger val) Returns a BigInteger whose value is(this * val).BigInteger.or(BigInteger val) Returns a BigInteger whose value is(this | val).BigInteger.remainder(BigInteger val) Returns a BigInteger whose value is(this % val).BigInteger.subtract(BigInteger val) Returns a BigInteger whose value is(this - val).BigInteger.xor(BigInteger val) Returns a BigInteger whose value is(this ^ val).Constructors in java.math with parameters of type BigIntegerModifierConstructorDescriptionBigDecimal(BigInteger val) Translates aBigIntegerinto aBigDecimal.BigDecimal(BigInteger unscaledVal, int scale) Translates aBigIntegerunscaled value and anintscale into aBigDecimal.BigDecimal(BigInteger unscaledVal, int scale, MathContext mc) Translates aBigIntegerunscaled value and anintscale into aBigDecimal, with rounding according to the context settings.BigDecimal(BigInteger val, MathContext mc) Translates aBigIntegerinto aBigDecimalrounding according to the context settings. -
Uses of BigInteger in java.security.cert
Methods in java.security.cert that return BigIntegerModifier and TypeMethodDescriptionX509CRLSelector.getMaxCRL()Returns the maxCRLNumber criterion.X509CRLSelector.getMinCRL()Returns the minCRLNumber criterion.abstract BigIntegerX509Certificate.getSerialNumber()Gets theserialNumbervalue from the certificate.X509CertSelector.getSerialNumber()Returns the serialNumber criterion.abstract BigIntegerX509CRLEntry.getSerialNumber()Gets the serial number from this X509CRLEntry, the userCertificate.Methods in java.security.cert with parameters of type BigIntegerModifier and TypeMethodDescriptionabstract X509CRLEntryX509CRL.getRevokedCertificate(BigInteger serialNumber) Gets the CRL entry, if any, with the given certificate serialNumber.voidX509CRLSelector.setMaxCRLNumber(BigInteger maxCRL) Sets the maxCRLNumber criterion.voidX509CRLSelector.setMinCRLNumber(BigInteger minCRL) Sets the minCRLNumber criterion.voidX509CertSelector.setSerialNumber(BigInteger serial) Sets the serialNumber criterion. -
Uses of BigInteger in java.security.interfaces
Methods in java.security.interfaces that return BigIntegerModifier and TypeMethodDescriptionRSAMultiPrimePrivateCrtKey.getCrtCoefficient()Returns the crtCoefficient.RSAPrivateCrtKey.getCrtCoefficient()Returns the crtCoefficient.DSAParams.getG()Returns the base,g.RSAKey.getModulus()Returns the modulus.DSAParams.getP()Returns the prime,p.RSAMultiPrimePrivateCrtKey.getPrimeExponentP()Returns the primeExponentP.RSAPrivateCrtKey.getPrimeExponentP()Returns the primeExponentP.RSAMultiPrimePrivateCrtKey.getPrimeExponentQ()Returns the primeExponentQ.RSAPrivateCrtKey.getPrimeExponentQ()Returns the primeExponentQ.RSAMultiPrimePrivateCrtKey.getPrimeP()Returns the primeP.RSAPrivateCrtKey.getPrimeP()Returns the primeP.RSAMultiPrimePrivateCrtKey.getPrimeQ()Returns the primeQ.RSAPrivateCrtKey.getPrimeQ()Returns the primeQ.RSAPrivateKey.getPrivateExponent()Returns the private exponent.RSAMultiPrimePrivateCrtKey.getPublicExponent()Returns the public exponent.RSAPrivateCrtKey.getPublicExponent()Returns the public exponent.RSAPublicKey.getPublicExponent()Returns the public exponent.DSAParams.getQ()Returns the subprime,q.ECPrivateKey.getS()Returns the private value S.XECPublicKey.getU()Get the u coordinate of the point.DSAPrivateKey.getX()Returns the value of the private key,x.DSAPublicKey.getY()Returns the value of the public key,y. -
Uses of BigInteger in java.security.spec
Fields in java.security.spec declared as BigIntegerModifier and TypeFieldDescriptionstatic final BigIntegerRSAKeyGenParameterSpec.F0The public-exponent value F0 = 3.static final BigIntegerRSAKeyGenParameterSpec.F4The public exponent-value F4 = 65537.Methods in java.security.spec that return BigIntegerModifier and TypeMethodDescriptionEllipticCurve.getA()Returns the first coefficientaof the elliptic curve.ECPoint.getAffineX()Returns the affine x-coordinatex.ECPoint.getAffineY()Returns the affine y-coordinatey.EllipticCurve.getB()Returns the second coefficientbof the elliptic curve.RSAMultiPrimePrivateCrtKeySpec.getCrtCoefficient()Returns the crtCoefficient.final BigIntegerRSAOtherPrimeInfo.getCrtCoefficient()Returns the prime's crtCoefficient.RSAPrivateCrtKeySpec.getCrtCoefficient()Returns the crtCoefficient.final BigIntegerRSAOtherPrimeInfo.getExponent()Returns the prime's exponent.DSAParameterSpec.getG()Returns the baseg.DSAPrivateKeySpec.getG()Returns the baseg.DSAPublicKeySpec.getG()Returns the baseg.RSAPrivateKeySpec.getModulus()Returns the modulus.RSAPublicKeySpec.getModulus()Returns the modulus.ECParameterSpec.getOrder()Returns the order of the generator.DSAParameterSpec.getP()Returns the primep.DSAPrivateKeySpec.getP()Returns the primep.DSAPublicKeySpec.getP()Returns the primep.ECFieldFp.getP()Returns the primepof this prime finite field.final BigIntegerRSAOtherPrimeInfo.getPrime()Returns the prime.RSAMultiPrimePrivateCrtKeySpec.getPrimeExponentP()Returns the primeExponentP.RSAPrivateCrtKeySpec.getPrimeExponentP()Returns the primeExponentP.RSAMultiPrimePrivateCrtKeySpec.getPrimeExponentQ()Returns the primeExponentQ.RSAPrivateCrtKeySpec.getPrimeExponentQ()Returns the primeExponentQ.RSAMultiPrimePrivateCrtKeySpec.getPrimeP()Returns the primeP.RSAPrivateCrtKeySpec.getPrimeP()Returns the primeP.RSAMultiPrimePrivateCrtKeySpec.getPrimeQ()Returns the primeQ.RSAPrivateCrtKeySpec.getPrimeQ()Returns the primeQ.RSAPrivateKeySpec.getPrivateExponent()Returns the private exponent.RSAKeyGenParameterSpec.getPublicExponent()Returns the public-exponent value.RSAMultiPrimePrivateCrtKeySpec.getPublicExponent()Returns the public exponent.RSAPrivateCrtKeySpec.getPublicExponent()Returns the public exponent.RSAPublicKeySpec.getPublicExponent()Returns the public exponent.DSAParameterSpec.getQ()Returns the sub-primeq.DSAPrivateKeySpec.getQ()Returns the sub-primeq.DSAPublicKeySpec.getQ()Returns the sub-primeq.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.ECPrivateKeySpec.getS()Returns the private value S.XECPublicKeySpec.getU()Get the u coordinate of the point.DSAPrivateKeySpec.getX()Returns the private keyx.DSAPublicKeySpec.getY()Returns the public keyy.EdECPoint.getY()Get the y-coordinate of the point.Constructors in java.security.spec with parameters of type BigIntegerModifierConstructorDescriptionDSAParameterSpec(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^melements with polynomial basis.Creates an elliptic curve prime finite field with the specified primep.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-coordinatexand affine y-coordinatey.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 fieldfieldand the coefficientsaandb.EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) Creates an elliptic curve with the specified elliptic fieldfield, the coefficientsaandb, and theseedused for curve generation.RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent) Constructs a newRSAKeyGenParameterSpecobject from the given keysize, public-exponent value, and null key parameters.RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent, AlgorithmParameterSpec keyParams) Constructs a newRSAKeyGenParameterSpecobject 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 newRSAMultiPrimePrivateCrtKeySpec.RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo, AlgorithmParameterSpec keyParams) Creates a newRSAMultiPrimePrivateCrtKeySpecwith additional key parameters.RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient) Creates a newRSAOtherPrimeInfogiven 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 newRSAPrivateCrtKeySpec.RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, AlgorithmParameterSpec keyParams) Creates a newRSAPrivateCrtKeySpecwith 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 BigIntegerModifier and TypeMethodDescriptionScanner.nextBigInteger()Scans the next token of the input as aBigInteger.Scanner.nextBigInteger(int radix) Scans the next token of the input as aBigInteger. -
Uses of BigInteger in java.util.random
Methods in java.util.random that return BigInteger -
Uses of BigInteger in javax.crypto.interfaces
Methods in javax.crypto.interfaces that return BigInteger -
Uses of BigInteger in javax.crypto.spec
Methods in javax.crypto.spec that return BigIntegerModifier and TypeMethodDescriptionDHParameterSpec.getG()Returns the base generatorg.DHPrivateKeySpec.getG()Returns the base generatorg.DHPublicKeySpec.getG()Returns the base generatorg.DHParameterSpec.getP()Returns the prime modulusp.DHPrivateKeySpec.getP()Returns the prime modulusp.DHPublicKeySpec.getP()Returns the prime modulusp.DHPrivateKeySpec.getX()Returns the private valuex.DHPublicKeySpec.getY()Returns the public valuey.Constructors in javax.crypto.spec with parameters of type BigIntegerModifierConstructorDescriptionConstructs a parameter set for Diffie-Hellman, using a prime moduluspand a base generatorg.DHParameterSpec(BigInteger p, BigInteger g, int l) Constructs a parameter set for Diffie-Hellman, using a prime modulusp, a base generatorg, and the size in bits,l, of the random exponent (private value).DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g) Constructor that takes a private valuex, a prime modulusp, and a base generatorg.DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g) Constructor that takes a public valuey, a prime modulusp, and a base generatorg. -
Uses of BigInteger in javax.management.openmbean
Fields in javax.management.openmbean with type parameters of type BigIntegerModifier and TypeFieldDescriptionstatic final SimpleType<BigInteger>SimpleType.BIGINTEGERTheSimpleTypeinstance describing values whose Java class name isjava.math.BigInteger. -
Uses of BigInteger in javax.security.cert
Methods in javax.security.cert that return BigIntegerModifier and TypeMethodDescriptionabstract BigIntegerX509Certificate.getSerialNumber()Deprecated, for removal: This API element is subject to removal in a future version.Gets theserialNumbervalue from the certificate. -
Uses of BigInteger in javax.xml.crypto.dsig.keyinfo
Methods in javax.xml.crypto.dsig.keyinfo that return BigIntegerModifier and TypeMethodDescriptionX509IssuerSerial.getSerialNumber()Returns the serial number of thisX509IssuerSerial.Methods in javax.xml.crypto.dsig.keyinfo with parameters of type BigIntegerModifier and TypeMethodDescriptionabstract X509IssuerSerialKeyInfoFactory.newX509IssuerSerial(String issuerName, BigInteger serialNumber) Creates anX509IssuerSerialfrom the specified X.500 issuer distinguished name and serial number. -
Uses of BigInteger in javax.xml.datatype
Methods in javax.xml.datatype that return BigIntegerModifier and TypeMethodDescriptionabstract BigIntegerXMLGregorianCalendar.getEon()Returns the high order component for XML Schema 1.0 dateTime datatype field foryear.abstract BigIntegerXMLGregorianCalendar.getEonAndYear()Returns the XML Schema 1.0 dateTime datatype field foryear.Methods in javax.xml.datatype with parameters of type BigIntegerModifier and TypeMethodDescriptionabstract DurationDatatypeFactory.newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds) Obtain a new instance of aDurationspecifying theDurationas isPositive, years, months, days, hours, minutes, seconds.DatatypeFactory.newDurationDayTime(boolean isPositive, BigInteger day, BigInteger hour, BigInteger minute, BigInteger second) Create aDurationof typexdt:dayTimeDurationusing the specifiedday,hour,minuteandsecondas defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration.DatatypeFactory.newDurationYearMonth(boolean isPositive, BigInteger year, BigInteger month) Create aDurationof typexdt:yearMonthDurationusing the specifiedyearandmonthas defined in XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration.abstract XMLGregorianCalendarDatatypeFactory.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 voidXMLGregorianCalendar.setYear(BigInteger year) Set low and high order component of XSDdateTimeyear field.