Foundation 1.1.2

クラス
java.math.BigInteger の使用

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

java.math での BigInteger の使用
 

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

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

BigInteger 型のパラメータを持つ java.math のメソッド
 BigInteger BigInteger.add(BigInteger val)
          値が (this + val) である BigInteger を返します。
 BigInteger BigInteger.and(BigInteger val)
          値が (this & val) である BigInteger を返します。
 BigInteger BigInteger.andNot(BigInteger val)
          値が (this & ~val) である BigInteger を返します。
 int BigInteger.compareTo(BigInteger val)
          この BigInteger を指定された BigInteger と比較します。
 BigInteger BigInteger.divide(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.max(BigInteger val)
          この BigInteger と val の最大値を返します。
 BigInteger BigInteger.min(BigInteger val)
          この BigInteger と val の最小値を返します。
 BigInteger BigInteger.mod(BigInteger m)
          値が (this mod m) である BigInteger を返します。
 BigInteger BigInteger.modInverse(BigInteger m)
          値が (this-1 mod m) である BigInteger を返します。
 BigInteger BigInteger.modPow(BigInteger exponent, BigInteger m)
          値が (thisexponent mod m) である BigInteger を返します。
 BigInteger BigInteger.multiply(BigInteger val)
          値が (this * val) である BigInteger を返します。
 BigInteger BigInteger.or(BigInteger val)
          値が (this | val) である BigInteger を返します。
 BigInteger BigInteger.remainder(BigInteger val)
          値が (this % val) である BigInteger を返します。
 BigInteger BigInteger.subtract(BigInteger val)
          値が (this - val) である BigInteger を返します。
 BigInteger BigInteger.xor(BigInteger val)
          値が (this ^ val) である BigInteger を返します。
 

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

java.security.cert での BigInteger の使用
 

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

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

java.security.interfaces での BigInteger の使用
 

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

java.security.spec での BigInteger の使用
 

BigInteger として宣言されている java.security.spec のフィールド
static BigInteger RSAKeyGenParameterSpec.F0
          公開指数値 F0 = 3
static BigInteger RSAKeyGenParameterSpec.F4
          公開指数値 F4 = 65537
 

BigInteger を返す java.security.spec のメソッド
 BigInteger RSAPrivateCrtKeySpec.getCrtCoefficient()
          crtCoefficient を返します。
 BigInteger DSAPrivateKeySpec.getG()
          ベース g を返します。
 BigInteger DSAPublicKeySpec.getG()
          ベース g を返します。
 BigInteger DSAParameterSpec.getG()
          ベース g を返します。
 BigInteger RSAPrivateKeySpec.getModulus()
          モジュラスを返します。
 BigInteger RSAPublicKeySpec.getModulus()
          モジュラスを返します。
 BigInteger DSAPrivateKeySpec.getP()
          プライム p を返します。
 BigInteger DSAPublicKeySpec.getP()
          プライム p を返します。
 BigInteger DSAParameterSpec.getP()
          プライム p を返します。
 BigInteger RSAPrivateCrtKeySpec.getPrimeExponentP()
          primeExponentP を返します。
 BigInteger RSAPrivateCrtKeySpec.getPrimeExponentQ()
          primeExponentQ を返します。
 BigInteger RSAPrivateCrtKeySpec.getPrimeP()
          primeP を返します。
 BigInteger RSAPrivateCrtKeySpec.getPrimeQ()
          primeQ を返します。
 BigInteger RSAPrivateKeySpec.getPrivateExponent()
          非公開指数を返します。
 BigInteger RSAKeyGenParameterSpec.getPublicExponent()
          公開指数値を返します。
 BigInteger RSAPrivateCrtKeySpec.getPublicExponent()
          公開指数を返します。
 BigInteger RSAPublicKeySpec.getPublicExponent()
          公開指数を返します。
 BigInteger DSAPrivateKeySpec.getQ()
          サブプライム q を返します。
 BigInteger DSAPublicKeySpec.getQ()
          サブプライム q を返します。
 BigInteger DSAParameterSpec.getQ()
          サブプライム q を返します。
 BigInteger DSAPrivateKeySpec.getX()
          非公開鍵 x を返します。
 BigInteger DSAPublicKeySpec.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 を作成します。
RSAKeyGenParameterSpec(int keysize, BigInteger publicExponent)
          指定されたキーサイズおよび公開指数値から新しい RSAParameterSpec オブジェクトを構築します。
RSAPrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, BigInteger primeQ, BigInteger primeExponentP, BigInteger primeExponentQ, BigInteger crtCoefficient)
          PKCS#1 に定義された modulus、publicExponent、privateExponent、primeP、primeQ、primeExponentP、primeExponentQ、および crtCoefficient を指定し、新しい RSAPrivateCrtKeySpec を作成します。
RSAPrivateKeySpec(BigInteger modulus, BigInteger privateExponent)
          新しい RSAPrivateKeySpec を作成します。
RSAPublicKeySpec(BigInteger modulus, BigInteger publicExponent)
          新しい RSAPublicKeySpec を作成します。
 


Foundation 1.1.2

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。