Java プラットフォーム 1.2

クラス
java.math.BigInteger の使用

BigInteger を使用するパッケージ
java.math 任意精度の整数演算 (BigInteger)、および任意精度の 10 進数演算 (BigDecimal) を実行するためのクラスを提供します。 
java.security.cert 証明書を解析および管理するためのクラスとインタフェースを提供します。 
java.security.interfaces RSA Laboratory Technical Note PKCS#1 で定義されている RSA (Rivest, Shamir and Adleman AsymmetricCipher algorithm) 鍵、および NIST の FIPS-186 で定義されている DSA (Digital Signature Algorithm) 鍵を生成するためのインタフェースを提供します。  
java.security.spec 鍵仕様およびアルゴリズムパラメータ仕様のクラスおよびインタフェースを提供します。  
 

java.math における BigInteger の使用方法
 

BigInteger として宣言される java.math におけるフィールド
static BigInteger BigInteger.ZERO
          BigInteger 定数 0 です。
static BigInteger BigInteger.ONE
          BigInteger 定数 1 です。
 

BigInteger を返す java.math におけるメソッド
static BigInteger BigInteger.valueOf(long val)
          値が指定した long の値と等しい BigInteger を返します。
 BigInteger BigInteger.add(BigInteger val)
          値が (this + val) の BigInteger を返します。
 BigInteger BigInteger.subtract(BigInteger val)
          値が (this - val) の BigInteger を返します。
 BigInteger BigInteger.multiply(BigInteger val)
          値が (this * val) の BigInteger を返します。
 BigInteger BigInteger.divide(BigInteger val)
          値が (this / val) の BigInteger を返します。
 BigInteger BigInteger.remainder(BigInteger val)
          値が (this % val) の BigInteger を返します。
 BigInteger[] BigInteger.divideAndRemainder(BigInteger val)
          (this / val) そして (this % val) と続く、2 つの BigInteger の配列を返します。
 BigInteger BigInteger.pow(int exponent)
          値が (thisexponent) の BigInteger を返します。
 BigInteger BigInteger.gcd(BigInteger val)
          値が abs(this)abs(val) の最大公約数である BigInteger を返します。
 BigInteger BigInteger.abs()
          値がこの BigInteger の絶対値である BigInteger を返します。
 BigInteger BigInteger.negate()
          値が (-this) の BigInteger を返します。
 BigInteger BigInteger.mod(BigInteger m)
          値が (this mod m) の BigInteger を返します。
 BigInteger BigInteger.modPow(BigInteger exponent, BigInteger m)
          値が (thisexponent mod m) の BigInteger を返します (pow と違って、このメソッドは負の指数を許容する)。
 BigInteger BigInteger.modInverse(BigInteger m)
          値が (this-1 mod m) の BigInteger を返します。
 BigInteger BigInteger.shiftLeft(int n)
          値が (this << n) の BigInteger を返します。
 BigInteger BigInteger.shiftRight(int n)
          値が (this >> n) の BigInteger を返します。
 BigInteger BigInteger.and(BigInteger val)
          値が (this & val) の BigInteger を返します (このメソッドは、this と val の両方が負の場合は負の BigInteger を返す)。
 BigInteger BigInteger.or(BigInteger val)
          値が (this | val) の BigInteger を返します (このメソッドは、this または val が負の場合は負の BigInteger を返す)。
 BigInteger BigInteger.xor(BigInteger val)
          値が (this ^ val) の BigInteger を返します (このメソッドは、this と val の片方だけが負の場合に負の BigInteger を返す)。
 BigInteger BigInteger.not()
          値が (‾this) の BigInteger を返します (このメソッドは、この BigInteger が負でない場合に負の値を返す)。
 BigInteger BigInteger.andNot(BigInteger val)
          値が (this & ‾val) である BigInteger を返します。
 BigInteger BigInteger.setBit(int n)
          値がこの BigInteger に等しい BigInteger を、指定されたビットを設定して返します ((this | (1<<n)) を計算する)。
 BigInteger BigInteger.clearBit(int n)
          値がこの BigInteger に等しい BigInteger を、指定されたビットをクリアして返します ((this & ‾(1<<n)) を計算する)。
 BigInteger BigInteger.flipBit(int n)
          値がこの BigInteger に等しい BigInteger を、指定されたビットを反転させて返します ((this ^ (1<<n)) を計算する)。
 BigInteger BigInteger.min(BigInteger val)
          この BigInteger と val の最小値を返します。
 BigInteger BigInteger.max(BigInteger val)
          この BigInteger と val の最大値を返します。
 BigInteger BigDecimal.unscaledValue()
          値がこの BigDecimal の「スケールなしの値」である BigDecimal を返します ((this * 10this.scale()) を計算する)。
 BigInteger BigDecimal.toBigInteger()
          この BigDecimal を BigInteger に変換します。
 

BigInteger のパラメータを持つ java.math におけるメソッド
 BigInteger BigInteger.add(BigInteger val)
          値が (this + val) の BigInteger を返します。
 BigInteger BigInteger.subtract(BigInteger val)
          値が (this - val) の BigInteger を返します。
 BigInteger BigInteger.multiply(BigInteger val)
          値が (this * val) の BigInteger を返します。
 BigInteger BigInteger.divide(BigInteger val)
          値が (this / val) の BigInteger を返します。
 BigInteger BigInteger.remainder(BigInteger val)
          値が (this % val) の BigInteger を返します。
 BigInteger[] BigInteger.divideAndRemainder(BigInteger val)
          (this / val) そして (this % val) と続く、2 つの BigInteger の配列を返します。
 BigInteger BigInteger.gcd(BigInteger val)
          値が abs(this)abs(val) の最大公約数である BigInteger を返します。
 BigInteger BigInteger.mod(BigInteger m)
          値が (this mod m) の BigInteger を返します。
 BigInteger BigInteger.modPow(BigInteger exponent, BigInteger m)
          値が (thisexponent mod m) の BigInteger を返します (pow と違って、このメソッドは負の指数を許容する)。
 BigInteger BigInteger.modInverse(BigInteger m)
          値が (this-1 mod m) の BigInteger を返します。
 BigInteger BigInteger.and(BigInteger val)
          値が (this & val) の BigInteger を返します (このメソッドは、this と val の両方が負の場合は負の BigInteger を返す)。
 BigInteger BigInteger.or(BigInteger val)
          値が (this | val) の BigInteger を返します (このメソッドは、this または val が負の場合は負の BigInteger を返す)。
 BigInteger BigInteger.xor(BigInteger val)
          値が (this ^ val) の BigInteger を返します (このメソッドは、this と val の片方だけが負の場合に負の BigInteger を返す)。
 BigInteger BigInteger.andNot(BigInteger val)
          値が (this & ‾val) である BigInteger を返します。
 int BigInteger.compareTo(BigInteger val)
          この BigInteger を指定された BigInteger と比較します。
 BigInteger BigInteger.min(BigInteger val)
          この BigInteger と val の最小値を返します。
 BigInteger BigInteger.max(BigInteger val)
          この BigInteger と val の最大値を返します。
 

BigInteger のパラメータを持つ java.math におけるコンストラクタ
BigDecimal.BigDecimal(BigInteger val)
          BigInteger を BigDecimal に変換します。
BigDecimal.BigDecimal(BigInteger unscaledVal, int scale)
          BigInteger のスケールなしの値と int スケールを BigDecimal に変換します。
 

java.security.cert における BigInteger の使用方法
 

BigInteger を返す java.security.cert におけるメソッド
abstract  BigInteger X509Certificate.getSerialNumber()
          証明書から serialNumber 値を取得します。
abstract  BigInteger X509CRLEntry.getSerialNumber()
          シリアル番号 userCertificate を取得します。
 

BigInteger のパラメータを持つ java.security.cert におけるメソッド
abstract  X509CRLEntry X509CRL.getRevokedCertificate(BigInteger serialNumber)
          指定された serialNumber を持つ CRL エントリを取得します。
 

java.security.interfaces における BigInteger の使用方法
 

BigInteger を返す java.security.interfaces におけるメソッド
 BigInteger DSAPrivateKey.getX()
          非公開鍵の値 x を返します。
 BigInteger RSAPrivateCrtKey.getPublicExponent()
          公開の指数を返します。
 BigInteger RSAPrivateCrtKey.getPrimeP()
          primeP を返します。
 BigInteger RSAPrivateCrtKey.getPrimeQ()
          primeQ を返します。
 BigInteger RSAPrivateCrtKey.getPrimeExponentP()
          primeExponentP を返します。
 BigInteger RSAPrivateCrtKey.getPrimeExponentQ()
          primeExponentQ を返します。
 BigInteger RSAPrivateCrtKey.getCrtCoefficient()
          crtCoefficient を返します。
 BigInteger DSAPublicKey.getY()
          公開鍵の値 y を返します。
 BigInteger RSAPublicKey.getModulus()
          モジュラスを返します。
 BigInteger RSAPublicKey.getPublicExponent()
          公開の指数を返します。
 BigInteger DSAParams.getP()
          プライムの p を返します。
 BigInteger DSAParams.getQ()
          サブプライムの q を返します。
 BigInteger DSAParams.getG()
          ベースの g を返します。
 BigInteger RSAPrivateKey.getModulus()
          モジュラスを返します。
 BigInteger RSAPrivateKey.getPrivateExponent()
          非公開の指数を返します。
 

java.security.spec における BigInteger の使用方法
 

BigInteger を返す java.security.spec におけるメソッド
 BigInteger RSAPublicKeySpec.getModulus()
          モジュラスを返します。
 BigInteger RSAPublicKeySpec.getPublicExponent()
          公開の指数を返します。
 BigInteger RSAPrivateKeySpec.getModulus()
          モジュラスを返します。
 BigInteger RSAPrivateKeySpec.getPrivateExponent()
          非公開の指数を返します。
 BigInteger RSAPrivateCrtKeySpec.getPublicExponent()
          公開の指数を返します。
 BigInteger RSAPrivateCrtKeySpec.getPrimeP()
          primeP を返します。
 BigInteger RSAPrivateCrtKeySpec.getPrimeQ()
          primeQ を返します。
 BigInteger RSAPrivateCrtKeySpec.getPrimeExponentP()
          primeExponentP を返します。
 BigInteger RSAPrivateCrtKeySpec.getPrimeExponentQ()
          primeExponentQ を返します。
 BigInteger RSAPrivateCrtKeySpec.getCrtCoefficient()
          crtCoefficient を返します。
 BigInteger DSAParameterSpec.getP()
          プライム p を返します。
 BigInteger DSAParameterSpec.getQ()
          サブプライム q を返します。
 BigInteger DSAParameterSpec.getG()
          ベース g を返します。
 BigInteger DSAPublicKeySpec.getY()
          公開鍵 y を返します。
 BigInteger DSAPublicKeySpec.getP()
          プライム p を返します。
 BigInteger DSAPublicKeySpec.getQ()
          プライム q を返します。
 BigInteger DSAPublicKeySpec.getG()
          ベース g を返します。
 BigInteger DSAPrivateKeySpec.getX()
          非公開鍵 x を返します。
 BigInteger DSAPrivateKeySpec.getP()
          プライム p を返します。
 BigInteger DSAPrivateKeySpec.getQ()
          サブプライム q を返します。
 BigInteger DSAPrivateKeySpec.getG()
          ベース g を返します。
 

BigInteger のパラメータを持つ java.security.spec におけるコンストラクタ
RSAPublicKeySpec.RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
           
RSAPrivateKeySpec.RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
           
RSAPrivateCrtKeySpec.RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
           
DSAParameterSpec.DSAParameterSpec(BigInteger p, BigInteger q, BigInteger g)
          指定されたパラメータ値を使って新しい DSAParameterSpec を作成します。
DSAPublicKeySpec.DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)
          指定されたパラメータ値を使って新しい DSAPublicKeySpec を作成します。
DSAPrivateKeySpec.DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)
          指定されたパラメータ値を使って新しい DSAPrivateKeySpec を作成します。
 


Java プラットフォーム 1.2

バグや機能要求の報告
新しい javadoc の表示についてのコメントやご提案
Java は、米国およびその他の国における米国 Sun Microsystems, Inc. の商標もしくは登録商標です。
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.