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!