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.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 processingKeyInfoelements 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 BigIntegerIndexColorModel. getValidPixels()Returns aBigIntegerthat indicates the valid/invalid pixels in the colormap.Constructors in java.awt.image with parameters of type BigInteger Constructor Description IndexColorModel(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 BigInteger Modifier and Type Field Description static BigIntegerBigInteger. ONEThe BigInteger constant one.static BigIntegerBigInteger. TENThe BigInteger constant ten.static BigIntegerBigInteger. TWOThe BigInteger constant two.static BigIntegerBigInteger. ZEROThe BigInteger constant zero.Methods in java.math that return BigInteger Modifier and Type Method Description BigIntegerBigInteger. abs()Returns a BigInteger whose value is the absolute value of this BigInteger.BigIntegerBigInteger. add(BigInteger val)Returns a BigInteger whose value is(this + val).BigIntegerBigInteger. and(BigInteger val)Returns a BigInteger whose value is(this & val).BigIntegerBigInteger. andNot(BigInteger val)Returns a BigInteger whose value is(this & ~val).BigIntegerBigInteger. clearBit(int n)Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit cleared.BigIntegerBigInteger. 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).BigIntegerBigInteger. flipBit(int n)Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit flipped.BigIntegerBigInteger. gcd(BigInteger val)Returns a BigInteger whose value is the greatest common divisor ofabs(this)andabs(val).BigIntegerBigInteger. max(BigInteger val)Returns the maximum of this BigInteger andval.BigIntegerBigInteger. min(BigInteger val)Returns the minimum of this BigInteger andval.BigIntegerBigInteger. mod(BigInteger m)Returns a BigInteger whose value is(this mod m).BigIntegerBigInteger. modInverse(BigInteger m)Returns a BigInteger whose value is(this-1mod m).BigIntegerBigInteger. modPow(BigInteger exponent, BigInteger m)Returns a BigInteger whose value is(thisexponent mod m).BigIntegerBigInteger. multiply(BigInteger val)Returns a BigInteger whose value is(this * val).BigIntegerBigInteger. negate()Returns a BigInteger whose value is(-this).BigIntegerBigInteger. nextProbablePrime()Returns the first integer greater than thisBigIntegerthat is probably prime.BigIntegerBigInteger. not()Returns a BigInteger whose value is(~this).BigIntegerBigInteger. or(BigInteger val)Returns a BigInteger whose value is(this | val).BigIntegerBigInteger. 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.BigIntegerBigInteger. remainder(BigInteger val)Returns a BigInteger whose value is(this % val).BigIntegerBigInteger. setBit(int n)Returns a BigInteger whose value is equivalent to this BigInteger with the designated bit set.BigIntegerBigInteger. shiftLeft(int n)Returns a BigInteger whose value is(this << n).BigIntegerBigInteger. shiftRight(int n)Returns a BigInteger whose value is(this >> n).BigIntegerBigInteger. sqrt()Returns the integer square root of this BigInteger.BigInteger[]BigInteger. sqrtAndRemainder()Returns an array of two BigIntegers containing the integer square rootsofthisand its remainderthis - s*s, respectively.BigIntegerBigInteger. subtract(BigInteger val)Returns a BigInteger whose value is(this - val).BigIntegerBigDecimal. toBigInteger()Converts thisBigDecimalto aBigInteger.BigIntegerBigDecimal. toBigIntegerExact()Converts thisBigDecimalto aBigInteger, checking for lost information.BigIntegerBigDecimal. 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.BigIntegerBigInteger. 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 BigIntegerBigInteger. add(BigInteger val)Returns a BigInteger whose value is(this + val).BigIntegerBigInteger. and(BigInteger val)Returns a BigInteger whose value is(this & val).BigIntegerBigInteger. andNot(BigInteger val)Returns a BigInteger whose value is(this & ~val).intBigInteger. compareTo(BigInteger val)Compares this BigInteger with the specified BigInteger.BigIntegerBigInteger. 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).BigIntegerBigInteger. gcd(BigInteger val)Returns a BigInteger whose value is the greatest common divisor ofabs(this)andabs(val).BigIntegerBigInteger. max(BigInteger val)Returns the maximum of this BigInteger andval.BigIntegerBigInteger. min(BigInteger val)Returns the minimum of this BigInteger andval.BigIntegerBigInteger. mod(BigInteger m)Returns a BigInteger whose value is(this mod m).BigIntegerBigInteger. modInverse(BigInteger m)Returns a BigInteger whose value is(this-1mod m).BigIntegerBigInteger. modPow(BigInteger exponent, BigInteger m)Returns a BigInteger whose value is(thisexponent mod m).BigIntegerBigInteger. multiply(BigInteger val)Returns a BigInteger whose value is(this * val).BigIntegerBigInteger. or(BigInteger val)Returns a BigInteger whose value is(this | val).BigIntegerBigInteger. remainder(BigInteger val)Returns a BigInteger whose value is(this % val).BigIntegerBigInteger. subtract(BigInteger val)Returns a BigInteger whose value is(this - val).BigIntegerBigInteger. xor(BigInteger val)Returns a BigInteger whose value is(this ^ val).Constructors in java.math with parameters of type BigInteger Constructor Description BigDecimal(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 BigInteger Modifier and Type Method Description BigIntegerX509CRLSelector. getMaxCRL()Returns the maxCRLNumber criterion.BigIntegerX509CRLSelector. getMinCRL()Returns the minCRLNumber criterion.abstract BigIntegerX509Certificate. getSerialNumber()Gets theserialNumbervalue from the certificate.BigIntegerX509CertSelector. 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 BigInteger Modifier and Type Method Description abstract 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 BigInteger Modifier and Type Method Description BigIntegerRSAMultiPrimePrivateCrtKey. getCrtCoefficient()Returns the crtCoefficient.BigIntegerRSAPrivateCrtKey. getCrtCoefficient()Returns the crtCoefficient.BigIntegerDSAParams. getG()Returns the base,g.BigIntegerRSAKey. getModulus()Returns the modulus.BigIntegerDSAParams. getP()Returns the prime,p.BigIntegerRSAMultiPrimePrivateCrtKey. getPrimeExponentP()Returns the primeExponentP.BigIntegerRSAPrivateCrtKey. getPrimeExponentP()Returns the primeExponentP.BigIntegerRSAMultiPrimePrivateCrtKey. getPrimeExponentQ()Returns the primeExponentQ.BigIntegerRSAPrivateCrtKey. getPrimeExponentQ()Returns the primeExponentQ.BigIntegerRSAMultiPrimePrivateCrtKey. getPrimeP()Returns the primeP.BigIntegerRSAPrivateCrtKey. getPrimeP()Returns the primeP.BigIntegerRSAMultiPrimePrivateCrtKey. getPrimeQ()Returns the primeQ.BigIntegerRSAPrivateCrtKey. getPrimeQ()Returns the primeQ.BigIntegerRSAPrivateKey. getPrivateExponent()Returns the private exponent.BigIntegerRSAMultiPrimePrivateCrtKey. getPublicExponent()Returns the public exponent.BigIntegerRSAPrivateCrtKey. getPublicExponent()Returns the public exponent.BigIntegerRSAPublicKey. getPublicExponent()Returns the public exponent.BigIntegerDSAParams. getQ()Returns the subprime,q.BigIntegerECPrivateKey. getS()Returns the private value S.BigIntegerXECPublicKey. getU()Get the u coordinate of the point.BigIntegerDSAPrivateKey. getX()Returns the value of the private key,x.BigIntegerDSAPublicKey. 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 BigIntegerRSAKeyGenParameterSpec. F0The public-exponent value F0 = 3.static BigIntegerRSAKeyGenParameterSpec. F4The public exponent-value F4 = 65537.Methods in java.security.spec that return BigInteger Modifier and Type Method Description BigIntegerEllipticCurve. getA()Returns the first coefficientaof the elliptic curve.BigIntegerECPoint. getAffineX()Returns the affine x-coordinatex.BigIntegerECPoint. getAffineY()Returns the affine y-coordinatey.BigIntegerEllipticCurve. getB()Returns the second coefficientbof the elliptic curve.BigIntegerRSAMultiPrimePrivateCrtKeySpec. getCrtCoefficient()Returns the crtCoefficient.BigIntegerRSAOtherPrimeInfo. getCrtCoefficient()Returns the prime's crtCoefficient.BigIntegerRSAPrivateCrtKeySpec. getCrtCoefficient()Returns the crtCoefficient.BigIntegerRSAOtherPrimeInfo. getExponent()Returns the prime's exponent.BigIntegerDSAParameterSpec. getG()Returns the baseg.BigIntegerDSAPrivateKeySpec. getG()Returns the baseg.BigIntegerDSAPublicKeySpec. getG()Returns the baseg.BigIntegerRSAPrivateKeySpec. getModulus()Returns the modulus.BigIntegerRSAPublicKeySpec. getModulus()Returns the modulus.BigIntegerECParameterSpec. getOrder()Returns the order of the generator.BigIntegerDSAParameterSpec. getP()Returns the primep.BigIntegerDSAPrivateKeySpec. getP()Returns the primep.BigIntegerDSAPublicKeySpec. getP()Returns the primep.BigIntegerECFieldFp. getP()Returns the primepof this prime finite field.BigIntegerRSAOtherPrimeInfo. getPrime()Returns the prime.BigIntegerRSAMultiPrimePrivateCrtKeySpec. getPrimeExponentP()Returns the primeExponentP.BigIntegerRSAPrivateCrtKeySpec. getPrimeExponentP()Returns the primeExponentP.BigIntegerRSAMultiPrimePrivateCrtKeySpec. getPrimeExponentQ()Returns the primeExponentQ.BigIntegerRSAPrivateCrtKeySpec. getPrimeExponentQ()Returns the primeExponentQ.BigIntegerRSAMultiPrimePrivateCrtKeySpec. getPrimeP()Returns the primeP.BigIntegerRSAPrivateCrtKeySpec. getPrimeP()Returns the primeP.BigIntegerRSAMultiPrimePrivateCrtKeySpec. getPrimeQ()Returns the primeQ.BigIntegerRSAPrivateCrtKeySpec. getPrimeQ()Returns the primeQ.BigIntegerRSAPrivateKeySpec. getPrivateExponent()Returns the private exponent.BigIntegerRSAKeyGenParameterSpec. getPublicExponent()Returns the public-exponent value.BigIntegerRSAMultiPrimePrivateCrtKeySpec. getPublicExponent()Returns the public exponent.BigIntegerRSAPrivateCrtKeySpec. getPublicExponent()Returns the public exponent.BigIntegerRSAPublicKeySpec. getPublicExponent()Returns the public exponent.BigIntegerDSAParameterSpec. getQ()Returns the sub-primeq.BigIntegerDSAPrivateKeySpec. getQ()Returns the sub-primeq.BigIntegerDSAPublicKeySpec. getQ()Returns the sub-primeq.BigIntegerECFieldF2m. 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.BigIntegerECPrivateKeySpec. getS()Returns the private value S.BigIntegerXECPublicKeySpec. getU()Get the u coordinate of the point.BigIntegerDSAPrivateKeySpec. getX()Returns the private keyx.BigIntegerDSAPublicKeySpec. getY()Returns the public keyy.Constructors in java.security.spec with parameters of type BigInteger 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^melements with polynomial basis.ECFieldFp(BigInteger p)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.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 BigInteger Modifier and Type Method Description BigIntegerScanner. nextBigInteger()Scans the next token of the input as aBigInteger.BigIntegerScanner. nextBigInteger(int radix)Scans the next token of the input as aBigInteger. -
Uses of BigInteger in javax.crypto.interfaces
Methods in javax.crypto.interfaces that return BigInteger Modifier and Type Method Description BigIntegerDHPrivateKey. getX()Returns the private value,x.BigIntegerDHPublicKey. 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 BigIntegerDHParameterSpec. getG()Returns the base generatorg.BigIntegerDHPrivateKeySpec. getG()Returns the base generatorg.BigIntegerDHPublicKeySpec. getG()Returns the base generatorg.BigIntegerDHParameterSpec. getP()Returns the prime modulusp.BigIntegerDHPrivateKeySpec. getP()Returns the prime modulusp.BigIntegerDHPublicKeySpec. getP()Returns the prime modulusp.BigIntegerDHPrivateKeySpec. getX()Returns the private valuex.BigIntegerDHPublicKeySpec. getY()Returns the public valuey.Constructors in javax.crypto.spec with parameters of type BigInteger Constructor Description DHParameterSpec(BigInteger p, BigInteger g)Constructs 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 BigInteger Modifier and Type Field Description static 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 BigInteger Modifier and Type Method Description abstract BigIntegerX509Certificate. getSerialNumber()Deprecated.Gets theserialNumbervalue 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 BigIntegerX509IssuerSerial. getSerialNumber()Returns the serial number of thisX509IssuerSerial.Methods in javax.xml.crypto.dsig.keyinfo with parameters of type BigInteger Modifier and Type Method Description abstract 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 BigInteger Modifier and Type Method Description abstract 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 BigInteger Modifier and Type Method Description abstract 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.DurationDatatypeFactory. 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.DurationDatatypeFactory. 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.
-