Class DhParameters
- java.lang.Object
-
- org.bouncycastle.crypto.internal.params.DhParameters
-
- All Implemented Interfaces:
CipherParameters
public class DhParameters extends java.lang.Object implements CipherParameters
-
-
Constructor Summary
Constructors Constructor Description DhParameters(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger q)DhParameters(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger q, int m, int l, java.math.BigInteger j)DhParameters(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger q, java.math.BigInteger j)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.math.BigIntegergetG()java.math.BigIntegergetJ()Return the subgroup factor J.intgetL()Return the private value length in bits - if set, zero otherwiseintgetM()Return the minimum length of the private value.java.math.BigIntegergetP()java.math.BigIntegergetQ()inthashCode()
-
-
-
Constructor Detail
-
DhParameters
public DhParameters(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger q)
-
DhParameters
public DhParameters(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger q, java.math.BigInteger j)
-
DhParameters
public DhParameters(java.math.BigInteger p, java.math.BigInteger g, java.math.BigInteger q, int m, int l, java.math.BigInteger j)
-
-
Method Detail
-
getP
public java.math.BigInteger getP()
-
getG
public java.math.BigInteger getG()
-
getQ
public java.math.BigInteger getQ()
-
getJ
public java.math.BigInteger getJ()
Return the subgroup factor J.- Returns:
- subgroup factor
-
getM
public int getM()
Return the minimum length of the private value.- Returns:
- the minimum length of the private value in bits.
-
getL
public int getL()
Return the private value length in bits - if set, zero otherwise- Returns:
- the private value length in bits, zero otherwise.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-