Most visited

Recently visited

Added in API level 1

DHPublicKeySpec

public class DHPublicKeySpec
extends Object implements KeySpec

java.lang.Object
    javax.crypto.spec.DHPublicKeySpec


此类指定具有相关参数的Diffie-Hellman公钥。

请注意,此类不会对指定的参数执行任何验证。 因此,即使它们为空,指定的值也会直接返回。

也可以看看:

摘要(Summary)

Public constructors

DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)

构造函数采用公共值 y ,质数模 p和基本生成器 g

公共方法(Public methods)

BigInteger getG()

返回基本生成器 g

BigInteger getP()

返回质数模 p

BigInteger getY()

返回公共值 y

继承方法(Inherited methods)

From class java.lang.Object

Public constructors

DHPublicKeySpec

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

构造函数采用公开值 y ,质数模 p ,以及基本生成器 g

参数(Parameters)
y BigInteger: public value y
p BigInteger: prime modulus p
g BigInteger: base generator g

公共方法(Public methods)

getG

Added in API level 1
BigInteger getG ()

返回基本生成器 g

返回(Returns)
BigInteger the base generator g

getP

Added in API level 1
BigInteger getP ()

返回质数模 p

返回(Returns)
BigInteger the prime modulus p

getY

Added in API level 1
BigInteger getY ()

返回公共值 y

返回(Returns)
BigInteger the public value y

Hooray!