Most visited

Recently visited

Added in API level 1

DHPrivateKeySpec

public class DHPrivateKeySpec
extends Object implements KeySpec

java.lang.Object
   ↳ javax.crypto.spec.DHPrivateKeySpec


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

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

也可以看看:

Summary

Public constructors

DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)

构造函数采用私有值 x ,质数模 p和基本生成器 g

Public methods

BigInteger getG()

返回基本生成器 g

BigInteger getP()

返回质数模 p

BigInteger getX()

返回私有值 x

Inherited methods

From class java.lang.Object

Public constructors

DHPrivateKeySpec

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

构造函数采用私有值 x ,质数模 p和基本生成器 g

Parameters
x BigInteger: private value x
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

getX

Added in API level 1
BigInteger getX ()

返回私有值 x

Returns
BigInteger the private value x

Hooray!