JavaTM 2 Platform
Standard Ed. 6

java.security.spec
類別 DSAPublicKeySpec

java.lang.Object
  繼承者 java.security.spec.DSAPublicKeySpec
所有已實作的介面:
KeySpec

public class DSAPublicKeySpec
extends Object
implements KeySpec

此類別指定帶關聯參數的 DSA 公用密鑰。

從以下版本開始:
1.2
另請參見:
Key, KeyFactory, KeySpec, DSAPrivateKeySpec, X509EncodedKeySpec

建構子摘要
DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)
          創建一個具有指定參數值的新 DSAPublicKeySpec。
 
方法摘要
 BigInteger getG()
          返回進制 g。
 BigInteger getP()
          返回素數 p。
 BigInteger getQ()
          返回子素數 q。
 BigInteger getY()
          返回公用密鑰 y。
 
從類別 java.lang.Object 繼承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

建構子詳細資訊

DSAPublicKeySpec

public DSAPublicKeySpec(BigInteger y,
                        BigInteger p,
                        BigInteger q,
                        BigInteger g)
創建一個具有指定參數值的新 DSAPublicKeySpec。

參數:
y - 公用鍵。
p - 素數。
q - 子素數。
g - 進制。
方法詳細資訊

getY

public BigInteger getY()
返回公用密鑰 y。

返回:
公用密鑰 y。

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。