Most visited

Recently visited

Added in API level 1

DSAPrivateKeySpec

public class DSAPrivateKeySpec
extends Object implements KeySpec

java.lang.Object
    java.security.spec.DSAPrivateKeySpec


该类使用其相关参数指定DSA私钥。

也可以看看:

摘要(Summary)

Public constructors

DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)

用指定的参数值创建一个新的DSAPrivateKeySpec。

公共方法(Public methods)

BigInteger getG()

返回基地 g

BigInteger getP()

返回素数 p

BigInteger getQ()

返回 q

BigInteger getX()

返回私钥 x

继承方法(Inherited methods)

From class java.lang.Object

Public constructors

DSAPrivateKeySpec

Added in API level 1
DSAPrivateKeySpec (BigInteger x, 
                BigInteger p, 
                BigInteger q, 
                BigInteger g)

用指定的参数值创建一个新的DSAPrivateKeySpec。

参数(Parameters)
x BigInteger: the private key.
p BigInteger: the prime.
q BigInteger: the sub-prime.
g BigInteger: the base.

公共方法(Public methods)

getG

Added in API level 1
BigInteger getG ()

返回基地 g

返回(Returns)
BigInteger the base g.

getP

Added in API level 1
BigInteger getP ()

返回素数 p

返回(Returns)
BigInteger the prime p.

getQ

Added in API level 1
BigInteger getQ ()

返回 q

返回(Returns)
BigInteger the sub-prime q.

getX

Added in API level 1
BigInteger getX ()

返回私钥 x

返回(Returns)
BigInteger the private key x.

Hooray!