クラスjava.math.BigInteger
の使用
BigIntegerを使用するパッケージ
パッケージ
説明
イメージを作成および修正するためのクラスを提供します。
任意精度の整数演算(
BigInteger)および任意精度の10進演算(BigDecimal)を行うクラスを提供します。証明書、証明書失効リスト(CRL)、証明書パスを解析および管理するためのクラスとインタフェースを提供します。
RSA Laboratory Technical Note PKCS#1で定義されているRSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm)キーと、NISTのFIPS-186で定義されているDSA (Digital Signature Algorithm)キーを生成するためのインタフェースを提供します。
キー仕様およびアルゴリズム・パラメータ仕様のクラスおよびインタフェースを提供します。
コレクション・フレームワーク、国際化サポート・クラス、サービス・ローダー、プロパティ、乱数生成、文字列解析とスキャン・クラス、Base64エンコーディングとデコード、ビット配列、およびその他のユーティリティ・クラスが含まれています。
このパッケージには、乱数生成のための汎用APIをサポートするクラスとインタフェースが含まれています。
RSA LaboratoriesのPKCS#3で定義されているDiffie-Hellmanキーのインタフェースを提供します。
キー仕様およびアルゴリズム・パラメータ仕様のクラスおよびインタフェースを提供します。
公開データ型とOpen MBean記述子クラスを提供します。
公開キー証明書用のクラスを提供します。
KeyInfoの要素や構造体の解析や処理を行うためのクラス。
XML/Java型マッピングを定義します。
-
java.awt.imageでのBigIntegerの使用
BigIntegerを返すjava.awt.imageのメソッド型BigIntegerのパラメータを持つjava.awt.imageのコンストラクタ修飾子コンストラクタ説明IndexColorModel(int bits, int size, int[] cmap, int start, int transferType, BigInteger validBits) intの配列からIndexColorModelを構築します。ただし、各intは、デフォルトのRGBカラー・モデル形式の赤、緑、青の色成分、および任意のアルファ成分からなります。 -
java.mathでのBigIntegerの使用
BigIntegerとして宣言されたjava.mathのフィールド修飾子と型フィールド説明static final BigIntegerBigInteger.ONEBigInteger定数1です。static final BigIntegerBigInteger.TENBigInteger定数10です。static final BigIntegerBigInteger.TWOBigInteger定数2。static final BigIntegerBigInteger.ZEROBigInteger定数0です。BigIntegerを返すjava.mathのメソッド修飾子と型メソッド説明BigInteger.abs()値がこのBigIntegerの絶対値であるBigIntegerを返します。BigInteger.add(BigInteger val) 値が(this+val)であるBigIntegerを返します。BigInteger.and(BigInteger val) 値が(this & val)であるBigIntegerを返します。BigInteger.andNot(BigInteger val) 値が(this & ~val)であるBigIntegerを返します。BigInteger.clearBit(int n) 値がこのBigIntegerに等しいBigIntegerを、指定されたビットをクリアして返します。BigInteger.divide(BigInteger val) 値が(this /val)であるBigIntegerを返します。BigInteger.divideAndRemainder(BigInteger val) (this /val)そして(this % val)と続く、2つのBigIntegerの配列を返します。BigInteger.flipBit(int n) 値がこのBigIntegerに等しいBigIntegerを、指定されたビットを反転させて返します。BigInteger.gcd(BigInteger val) 値がabs(this)とabs(val)の最大公約数であるBigIntegerを返します。BigInteger.max(BigInteger val) このBigIntegerとvalの最大値を返します。BigInteger.min(BigInteger val) このBigIntegerとvalの最小値を返します。BigInteger.mod(BigInteger m) 値が(this mod m)であるBigIntegerを返します。BigInteger.modInverse(BigInteger m) 値が(this-1mod m)であるBigIntegerを返します。BigInteger.modPow(BigInteger exponent, BigInteger m) 値が(thisexponent mod m)のBigIntegerを返します。BigInteger.multiply(BigInteger val) 値が(this * val)であるBigIntegerを返します。BigInteger.negate()値が(-this)であるBigIntegerを返します。BigInteger.nextProbablePrime()このBigIntegerより大きい最初の整数(おそらく素数)を返します。BigInteger.not()値が(~this)であるBigIntegerを返します。BigInteger.or(BigInteger val) 値が(this|val)であるBigIntegerを返します。BigInteger.parallelMultiply(BigInteger val) 値が(this * val)であるBigIntegerを返します。BigInteger.pow(int exponent) 値が(thisexponent)のBigIntegerを返します。static BigIntegerBigInteger.probablePrime(int bitLength, Random rnd) 指定されたビット長で正のBigInteger (おそらく素数)を返します。BigInteger.remainder(BigInteger val) 値が(this % val)であるBigIntegerを返します。BigInteger.setBit(int n) 値がこのBigIntegerに等しいBigIntegerを、指定されたビットを設定して返します。BigInteger.shiftLeft(int n) 値が(this << n)であるBigIntegerを返します。BigInteger.shiftRight(int n) 値が(this>> n)であるBigIntegerを返します。BigInteger.sqrt()このBigIntegerの整数の平方根を返します。BigInteger.sqrtAndRemainder()thisの整数平方根sとその残りthis - s*sを含む2つのBigIntegersの配列をそれぞれ返します。BigInteger.subtract(BigInteger val) 値が(this - val)であるBigIntegerを返します。BigDecimal.toBigInteger()このBigDecimalをBigIntegerに変換します。BigDecimal.toBigIntegerExact()このBigDecimalをBigIntegerに変換し、失われた情報がないかどうかを確認します。BigDecimal.unscaledValue()値がこのBigDecimalのスケールなしの値であるBigIntegerを返します。static BigIntegerBigInteger.valueOf(long val) 値が指定されたlongの値と等しいBigIntegerを返します。BigInteger.xor(BigInteger val) 値が(this^val)であるBigIntegerを返します。型BigIntegerのパラメータを持つjava.mathのメソッド修飾子と型メソッド説明BigInteger.add(BigInteger val) 値が(this+val)であるBigIntegerを返します。BigInteger.and(BigInteger val) 値が(this & val)であるBigIntegerを返します。BigInteger.andNot(BigInteger val) 値が(this & ~val)であるBigIntegerを返します。intBigInteger.compareTo(BigInteger val) このBigIntegerを指定されたBigIntegerと比較します。BigInteger.divide(BigInteger val) 値が(this /val)であるBigIntegerを返します。BigInteger.divideAndRemainder(BigInteger val) (this /val)そして(this % val)と続く、2つのBigIntegerの配列を返します。BigInteger.gcd(BigInteger val) 値がabs(this)とabs(val)の最大公約数であるBigIntegerを返します。BigInteger.max(BigInteger val) このBigIntegerとvalの最大値を返します。BigInteger.min(BigInteger val) このBigIntegerとvalの最小値を返します。BigInteger.mod(BigInteger m) 値が(this mod m)であるBigIntegerを返します。BigInteger.modInverse(BigInteger m) 値が(this-1mod m)であるBigIntegerを返します。BigInteger.modPow(BigInteger exponent, BigInteger m) 値が(thisexponent mod m)のBigIntegerを返します。BigInteger.multiply(BigInteger val) 値が(this * val)であるBigIntegerを返します。BigInteger.or(BigInteger val) 値が(this|val)であるBigIntegerを返します。BigInteger.parallelMultiply(BigInteger val) 値が(this * val)であるBigIntegerを返します。BigInteger.remainder(BigInteger val) 値が(this % val)であるBigIntegerを返します。BigInteger.subtract(BigInteger val) 値が(this - val)であるBigIntegerを返します。BigInteger.xor(BigInteger val) 値が(this^val)であるBigIntegerを返します。型BigIntegerのパラメータを持つjava.mathのコンストラクタ修飾子コンストラクタ説明BigDecimal(BigInteger val) BigIntegerをBigDecimalに変換します。BigDecimal(BigInteger unscaledVal, int scale) BigIntegerのスケールなしの値とintのスケールをBigDecimalに変換します。BigDecimal(BigInteger unscaledVal, int scale, MathContext mc) コンテキスト設定に従った丸めを使用して、BigIntegerのスケールなしの値とintのスケールをBigDecimalに変換します。BigDecimal(BigInteger val, MathContext mc) コンテキスト設定に従った丸めを使用して、BigIntegerをBigDecimalに変換します。 -
java.security.certでのBigIntegerの使用
BigIntegerを返すjava.security.certのメソッド修飾子と型メソッド説明X509CRLSelector.getMaxCRL()maxCRLNumber基準値を返します。X509CRLSelector.getMinCRL()minCRLNumber基準値を返します。abstract BigIntegerX509Certificate.getSerialNumber()証明書からserialNumber値を取得します。X509CertSelector.getSerialNumber()serialNumber基準値を返します。abstract BigIntegerX509CRLEntry.getSerialNumber()このX509CRLEntryからシリアル番号userCertificateを取得します。型BigIntegerのパラメータを持つjava.security.certのメソッド修飾子と型メソッド説明abstract X509CRLEntryX509CRL.getRevokedCertificate(BigInteger serialNumber) 指定された証明書のserialNumberを持つCRLエントリを取得します(ある場合)。voidX509CRLSelector.setMaxCRLNumber(BigInteger maxCRL) maxCRLNumber基準値を設定します。voidX509CRLSelector.setMinCRLNumber(BigInteger minCRL) minCRLNumber基準値を設定します。voidX509CertSelector.setSerialNumber(BigInteger serial) serialNumber基準値を設定します。 -
java.security.interfacesでのBigIntegerの使用
修飾子と型メソッド説明RSAMultiPrimePrivateCrtKey.getCrtCoefficient()crtCoefficientを返します。RSAPrivateCrtKey.getCrtCoefficient()crtCoefficientを返します。DSAParams.getG()底gを返します。RSAKey.getModulus()モジュラスを返します。DSAParams.getP()素数pを返します。RSAMultiPrimePrivateCrtKey.getPrimeExponentP()primeExponentPを返します。RSAPrivateCrtKey.getPrimeExponentP()primeExponentPを返します。RSAMultiPrimePrivateCrtKey.getPrimeExponentQ()primeExponentQを返します。RSAPrivateCrtKey.getPrimeExponentQ()primeExponentQを返します。RSAMultiPrimePrivateCrtKey.getPrimeP()primePを返します。RSAPrivateCrtKey.getPrimeP()primePを返します。RSAMultiPrimePrivateCrtKey.getPrimeQ()primeQを返します。RSAPrivateCrtKey.getPrimeQ()primeQを返します。RSAPrivateKey.getPrivateExponent()非公開指数を返します。RSAMultiPrimePrivateCrtKey.getPublicExponent()公開指数を返します。RSAPrivateCrtKey.getPublicExponent()公開指数を返します。RSAPublicKey.getPublicExponent()公開指数を返します。DSAParams.getQ()サブ素数qを返します。ECPrivateKey.getS()非公開値Sを返します。XECPublicKey.getU()点のu座標を取得します。DSAPrivateKey.getX()非公開キーの値xを返します。DSAPublicKey.getY()公開キーの値yを返します。 -
java.security.specでのBigIntegerの使用
BigIntegerとして宣言されたjava.security.specのフィールド修飾子と型フィールド説明static final BigIntegerRSAKeyGenParameterSpec.F0公開指数値F0 = 3。static final BigIntegerRSAKeyGenParameterSpec.F4公開指数値F4 = 65537。BigIntegerを返すjava.security.specのメソッド修飾子と型メソッド説明EllipticCurve.getA()楕円曲線の第1係数aを返します。ECPoint.getAffineX()アフィンx座標xを返します。ECPoint.getAffineY()アフィンy座標yを返します。EllipticCurve.getB()楕円曲線の第2係数bを返します。RSAMultiPrimePrivateCrtKeySpec.getCrtCoefficient()crtCoefficientを返します。final BigIntegerRSAOtherPrimeInfo.getCrtCoefficient()素数のcrtCoefficientを返します。RSAPrivateCrtKeySpec.getCrtCoefficient()crtCoefficientを返します。final BigIntegerRSAOtherPrimeInfo.getExponent()素数の指数を返します。DSAParameterSpec.getG()底gを返します。DSAPrivateKeySpec.getG()底gを返します。DSAPublicKeySpec.getG()底gを返します。RSAPrivateKeySpec.getModulus()モジュラスを返します。RSAPublicKeySpec.getModulus()モジュラスを返します。ECParameterSpec.getOrder()ジェネレータの位数を返します。DSAParameterSpec.getP()素数pを返します。DSAPrivateKeySpec.getP()素数pを返します。DSAPublicKeySpec.getP()素数pを返します。ECFieldFp.getP()この素数位数の有限体の素数pを返します。final BigIntegerRSAOtherPrimeInfo.getPrime()素数を返します。RSAMultiPrimePrivateCrtKeySpec.getPrimeExponentP()primeExponentPを返します。RSAPrivateCrtKeySpec.getPrimeExponentP()primeExponentPを返します。RSAMultiPrimePrivateCrtKeySpec.getPrimeExponentQ()primeExponentQを返します。RSAPrivateCrtKeySpec.getPrimeExponentQ()primeExponentQを返します。RSAMultiPrimePrivateCrtKeySpec.getPrimeP()primePを返します。RSAPrivateCrtKeySpec.getPrimeP()primePを返します。RSAMultiPrimePrivateCrtKeySpec.getPrimeQ()primeQを返します。RSAPrivateCrtKeySpec.getPrimeQ()primeQを返します。RSAPrivateKeySpec.getPrivateExponent()非公開指数を返します。RSAKeyGenParameterSpec.getPublicExponent()公開指数値を返します。RSAMultiPrimePrivateCrtKeySpec.getPublicExponent()公開指数を返します。RSAPrivateCrtKeySpec.getPublicExponent()公開指数を返します。RSAPublicKeySpec.getPublicExponent()公開指数を返します。DSAParameterSpec.getQ()サブ素数qを返します。DSAPrivateKeySpec.getQ()サブ素数qを返します。DSAPublicKeySpec.getQ()サブ素数qを返します。ECFieldF2m.getReductionPolynomial()多項式基底の場合はi番目のビットが既約多項式のi番目の係数に対応するようなBigIntegerを返し、標準基底の場合はnullを返します。ECPrivateKeySpec.getS()非公開値Sを返します。XECPublicKeySpec.getU()点のu座標を取得します。DSAPrivateKeySpec.getX()非公開キーxを返します。DSAPublicKeySpec.getY()公開キーyを返します。EdECPoint.getY()点のy座標を取得します。型BigIntegerのパラメータを持つjava.security.specのコンストラクタ修飾子コンストラクタ説明DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g) 指定されたパラメータ値を使って新しいDSAParameterSpecを作成します。DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g) 指定されたパラメータ値を使って新しいDSAPrivateKeySpecを作成します。DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g) 指定されたパラメータ値を使って新しいDSAPublicKeySpecを作成します。ECFieldF2m(int m, BigInteger rp) 楕円曲線の標数2の有限体(要素数2^m)を、多項式基底(polynomial basis)で作成します。指定された素数pを使用して楕円曲線の素数位数の有限体を作成します。ECParameterSpec(EllipticCurve curve, ECPoint g, BigInteger n, int h) 指定された値に基づいて楕円曲線ドメイン・パラメータを作成します。ECPoint(BigInteger x, BigInteger y) 指定されたアフィンx座標xとアフィンy座標yからECPointを作成します。ECPrivateKeySpec(BigInteger s, ECParameterSpec params) 指定されたパラメータ値を使ってECPrivateKeySpecを作成します。EdECPoint(boolean xOdd, BigInteger y) EdECPointを構築します。EllipticCurve(ECField field, BigInteger a, BigInteger b) 指定された楕円体fieldと係数a、bを使って楕円曲線を作成します。EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) 指定された楕円体field、係数a、b、および曲線生成用seedを使って楕円曲線を作成します。RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent) 指定されたキー・サイズ、公開された値、およびnullキー・パラメータから新しいRSAKeyGenParameterSpecオブジェクトを構築します。RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent, AlgorithmParameterSpec keyParams) 指定されたキー・サイズ、公開された値、およびキー・パラメータから新しいRSAKeyGenParameterSpecオブジェクトを構築します。RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo) 新しいRSAMultiPrimePrivateCrtKeySpecを作成します。RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, RSAOtherPrimeInfo[] otherPrimeInfo, AlgorithmParameterSpec keyParams) その他のキー・パラメータを含む新しいRSAMultiPrimePrivateCrtKeySpecを作成します。RSAOtherPrimeInfo(BigInteger prime, BigInteger primeExponent, BigInteger crtCoefficient) PKCS#1に定義されたprime、primeExponent、crtCoefficientを指定し、新しいRSAOtherPrimeInfoを作成します。RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient) 新しいRSAPrivateCrtKeySpecを作成します。RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient, AlgorithmParameterSpec keyParams) その他のキー・パラメータを含む新しいRSAPrivateCrtKeySpecを作成します。RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent) 新しいRSAPrivateKeySpecを作成します。RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent, AlgorithmParameterSpec params) 追加のキー・パラメータを使用して、新しいRSAPrivateKeySpecを作成します。RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent) 新しいRSAPublicKeySpecを作成します。RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent, AlgorithmParameterSpec params) 追加のキー・パラメータを使用して、新しいRSAPublicKeySpecを作成します。XECPublicKeySpec(AlgorithmParameterSpec params, BigInteger u) 指定されたパラメータおよびu座標を使用して、公開キー仕様を作成します。 -
java.utilでのBigIntegerの使用
BigIntegerを返すjava.utilのメソッド修飾子と型メソッド説明Scanner.nextBigInteger()入力の次のトークンをBigIntegerとしてスキャンします。Scanner.nextBigInteger(int radix) 入力の次のトークンをBigIntegerとしてスキャンします。 -
java.util.randomでのBigIntegerの使用
BigIntegerを返すjava.util.randomのメソッド -
javax.crypto.interfacesでのBigIntegerの使用
-
javax.crypto.specでのBigIntegerの使用
BigIntegerを返すjavax.crypto.specのメソッド修飾子と型メソッド説明DHParameterSpec.getG()ベース・ジェネレータgを返します。DHPrivateKeySpec.getG()ベース・ジェネレータgを返します。DHPublicKeySpec.getG()ベース・ジェネレータgを返します。DHParameterSpec.getP()素数モジュラスpを返します。DHPrivateKeySpec.getP()素数モジュラスpを返します。DHPublicKeySpec.getP()素数モジュラスpを返します。DHPrivateKeySpec.getX()非公開値xを返します。DHPublicKeySpec.getY()公開値yを返します。型BigIntegerのパラメータを持つjavax.crypto.specのコンストラクタ修飾子コンストラクタ説明素数モジュラスpおよびベース・ジェネレータgを使用して、Diffie-Hellmanのパラメータ・セットを構築します。DHParameterSpec(BigInteger p, BigInteger g, int l) 素数モジュラスp、ベース・ジェネレータg、およびランダム指数(非公開値)のビット単位のサイズlを使用して、Diffie-Hellmanのパラメータ・セットを構築します。DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g) 非公開値x、素数モジュラスp、およびベース・ジェネレータgをとるコンストラクタです。DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g) 公開値y、素数モジュラスp、およびベース・ジェネレータgをとるコンストラクタです。 -
javax.management.openmbeanでのBigIntegerの使用
型BigIntegerの型パラメータを持つjavax.management.openmbeanのフィールド修飾子と型フィールド説明static final SimpleType<BigInteger> SimpleType.BIGINTEGERJavaクラス名がjava.math.BigIntegerの値を記述するSimpleTypeインスタンスです。 -
javax.security.certでのBigIntegerの使用
BigIntegerを返すjavax.security.certのメソッド修飾子と型メソッド説明abstract BigIntegerX509Certificate.getSerialNumber()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。証明書からserialNumber値を取得します。 -
javax.xml.crypto.dsig.keyinfoでのBigIntegerの使用
型BigIntegerのパラメータを持つjavax.xml.crypto.dsig.keyinfoのメソッド修飾子と型メソッド説明abstract X509IssuerSerialKeyInfoFactory.newX509IssuerSerial(String issuerName, BigInteger serialNumber) 指定したX.500発行者識別名およびシリアル番号からX509IssuerSerialを作成します。 -
javax.xml.datatypeでのBigIntegerの使用
BigIntegerを返すjavax.xml.datatypeのメソッド修飾子と型メソッド説明abstract BigIntegerXMLGregorianCalendar.getEon()yearのXML Schema 1.0 dateTimeデータ型フィールドの高順序コンポーネントを返します。abstract BigIntegerXMLGregorianCalendar.getEonAndYear()yearのXMLスキーマの1.0 dateTimeデータ型フィールドを返します。型BigIntegerのパラメータを持つjavax.xml.datatypeのメソッド修飾子と型メソッド説明abstract DurationDatatypeFactory.newDuration(boolean isPositive, BigInteger years, BigInteger months, BigInteger days, BigInteger hours, BigInteger minutes, BigDecimal seconds) DurationをisPositive、年、月、日、時間、分、秒で指定するDurationの新しいインスタンスを取得します。DatatypeFactory.newDurationDayTime(boolean isPositive, BigInteger day, BigInteger hour, BigInteger minute, BigInteger second) 「XQuery 1.0 and XPath 2.0 Data Model, xdt:dayTimeDuration」で定義されたday、hour、minute、およびsecondを使用して、xdt:dayTimeDuration型のDurationを作成します。DatatypeFactory.newDurationYearMonth(boolean isPositive, BigInteger year, BigInteger month) 「XQuery 1.0 and XPath 2.0 Data Model, xdt:yearMonthDuration」で定義されたyearおよびmonthを使用して、xdt:yearMonthDuration型のDurationを作成します。abstract XMLGregorianCalendarDatatypeFactory.newXMLGregorianCalendar(BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone) W3C XML Schema 1.0 recommendationでxsd:dateTimeおよび関連するビルトイン・データ型に許可されている完全な値空間を可能にするコンストラクタです。abstract voidXMLGregorianCalendar.setYear(BigInteger year) XSDdateTime年フィールドの下位および上位コンポーネントを設定します。