JavaTM Platform
Standard Ed. 6

java.security.spec
クラス DSAPrivateKeySpec

java.lang.Object
  上位を拡張 java.security.spec.DSAPrivateKeySpec
すべての実装されたインタフェース:
KeySpec

public class DSAPrivateKeySpec
extends Object
implements KeySpec

関連したパラメータを使って DSA 非公開鍵を指定します。

導入されたバージョン:
1.2
関連項目:
Key, KeyFactory, KeySpec, DSAPublicKeySpec, PKCS8EncodedKeySpec

コンストラクタの概要
DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)
          指定されたパラメータ値を使って新しい DSAPrivateKeySpec を作成します。
 
メソッドの概要
 BigInteger getG()
          ベース g を返します。
 BigInteger getP()
          プライム p を返します。
 BigInteger getQ()
          サブプライム q を返します。
 BigInteger getX()
          非公開鍵 x を返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DSAPrivateKeySpec

public DSAPrivateKeySpec(BigInteger x,
                         BigInteger p,
                         BigInteger q,
                         BigInteger g)
指定されたパラメータ値を使って新しい DSAPrivateKeySpec を作成します。

パラメータ:
x - 非公開鍵
p - プライム
q - サブプライム
g - ベース
メソッドの詳細

getX

public BigInteger getX()
非公開鍵 x を返します。

戻り値:
非公開鍵 x

getP

public BigInteger getP()
プライム p を返します。

戻り値:
プライム p

getQ

public BigInteger getQ()
サブプライム q を返します。

戻り値:
サブプライム q

getG

public BigInteger getG()
ベース g を返します。

戻り値:
ベース g

JavaTM Platform
Standard Ed. 6

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

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