JavaTM 2 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 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。