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!