Most visited

Recently visited

Added in API level 1

DSAPublicKeySpec

public class DSAPublicKeySpec
extends Object implements KeySpec

java.lang.Object
   ↳ java.security.spec.DSAPublicKeySpec


该类指定一个带有关联参数的DSA公钥。

也可以看看:

Summary

Public constructors

DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)

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

Public methods

BigInteger getG()

返回基地 g

BigInteger getP()

返回素数 p

BigInteger getQ()

返回 q

BigInteger getY()

返回公钥 y

Inherited methods

From class java.lang.Object

Public constructors

DSAPublicKeySpec

Added in API level 1
DSAPublicKeySpec (BigInteger y, 
                BigInteger p, 
                BigInteger q, 
                BigInteger g)

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

Parameters
y BigInteger: the public 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.

getY

Added in API level 1
BigInteger getY ()

返回公钥 y

Returns
BigInteger the public key y.

Hooray!