public class DHPrivateKeySpec extends Object implements KeySpec
请注意,此类不对指定的参数执行任何验证。 因此,即使它们为空,也会直接返回指定的值。
DHPublicKeySpec
Constructor and Description |
---|
DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
具有私有价值
x ,素数模数
p 和基本生成器
g 。
|
public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
x
,素数模数
p
和基本生成器
g
。
x
- 私有价值x
p
- 质量模数p
g
- 基地发电机g
public BigInteger getX()
x
。
x
public BigInteger getP()
p
。
p
public BigInteger getG()
g
。
g
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.