public class DHDomainParameterSpec
extends javax.crypto.spec.DHParameterSpec
Constructor and Description |
---|
DHDomainParameterSpec(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Minimal constructor for parameters able to be used to verify a public key, or use with MQV.
|
DHDomainParameterSpec(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger j,
int l,
DHValidationParameters validationParameters)
X9.42 parameters with private value length.
|
DHDomainParameterSpec(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger j,
int m,
int l,
DHValidationParameters validationParameters)
Base constructor - the full domain parameter set.
|
DHDomainParameterSpec(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
int l)
Minimal constructor for parameters able to be used to verify a public key, or use with MQV, and a private value length.
|
DHDomainParameterSpec(DHDomainParameters domainParameters)
Base constructor - use the values in an existing set of domain parameters.
|
Modifier and Type | Method and Description |
---|---|
DHDomainParameters |
getDomainParameters()
Return the DHDomainParameters object we represent.
|
java.math.BigInteger |
getJ()
Return the J value for the domain parameter set if available.
|
int |
getM()
Return the minimum bitlength for a private value to be generated from these parameters, 0 if not set.
|
java.math.BigInteger |
getQ()
Return the Q value for the domain parameter set.
|
DHValidationParameters |
getValidationParameters()
Return the validation parameters for the domain parameter set.
|
public DHDomainParameterSpec(DHDomainParameters domainParameters)
domainParameters
- the Diffie-Hellman domain parameters to wrap.public DHDomainParameterSpec(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
p
- the prime p defining the Galois field.g
- the generator of the multiplicative subgroup of order g.q
- specifies the prime factor of p - 1public DHDomainParameterSpec(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, int l)
p
- the prime p defining the Galois field.g
- the generator of the multiplicative subgroup of order g.q
- specifies the prime factor of p - 1l
- the maximum bit length for the private value.public DHDomainParameterSpec(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, java.math.BigInteger j, int l, DHValidationParameters validationParameters)
p
- the prime p defining the Galois field.g
- the generator of the multiplicative subgroup of order g.q
- specifies the prime factor of p - 1j
- optionally specifies the value that satisfies the equation p = jq+1l
- the maximum bit length for the private value.validationParameters
- parameters for validating these domain parameters.public DHDomainParameterSpec(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, java.math.BigInteger j, int m, int l, DHValidationParameters validationParameters)
p
- the prime p defining the Galois field.g
- the generator of the multiplicative subgroup of order g.q
- specifies the prime factor of p - 1j
- optionally specifies the value that satisfies the equation p = jq+1m
- the minimum bit length for the private value.l
- the maximum bit length for the private value.validationParameters
- parameters for validating these domain parameters.public java.math.BigInteger getQ()
public java.math.BigInteger getJ()
public int getM()
public DHValidationParameters getValidationParameters()
public DHDomainParameters getDomainParameters()