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.