public class DHParameterSpec extends Object implements AlgorithmParameterSpec
 中央权力机构生成参数并将其提供给寻求生成秘密密钥的两个实体。 参数是素数p ,基数g ,以及私有值l长度(以位为l 。 
可能的是,多个参数实例可能由给定的中央机构生成,并且可能有多个中央权限。 事实上,每个人都可能是自己的中央权威,不同的实体有不同的参数。
请注意,此类不对指定的参数执行任何验证。 因此,即使它们为空,也会直接返回指定的值。
KeyAgreement 
       | Constructor and Description | 
|---|
| DHParameterSpec(BigInteger p, BigInteger g)
              使用质数模数 
              p和基本生成器gDiffie-Hellman的参数g。 | 
| DHParameterSpec(BigInteger p, BigInteger g, int l)
              构建了的Diffie-Hellman设置,使用质数模数的参数 
              p,基发生器g,并且以位为单位的大小,l,随机指数(私有值)。 | 
public DHParameterSpec(BigInteger p, BigInteger g)
p和基本发生器 
           g Diffie-Hellman的参数 
           g 。 
          p - 质量模数 
           g - 基地发电机 
           public DHParameterSpec(BigInteger p, BigInteger g, int l)
p ,基发生器 
           g ,并且以位为单位的大小, 
           l ,随机指数(私有值)。 
          p - 质量模数 
           g - 基地发电机 
           l - 随机指数(私有值)的位大小 
           public BigInteger getP()
p 。 
          p 
           public BigInteger getG()
g 。 
          g 
           public int getL()
l的大小。 
          l ,如果此大小尚未设置,则为0 
            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.