public class DHPublicKeySpec extends Object implements KeySpec
请注意,此类不对指定的参数执行任何验证。 因此,即使它们为空,也会直接返回指定的值。
DHPrivateKeySpec
| Constructor and Description |
|---|
DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)
具有公开值
y ,质数模数
p和基本生成器
g 。
|
public DHPublicKeySpec(BigInteger y, BigInteger p, BigInteger g)
y ,质数模数
p和基本生成器
g 。
y - 公共价值y
p - 质量模数p
g - 基地发电机g
public BigInteger getY()
y 。
y
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.