org.apache.geronimo.util.crypto.params
Class DHParameters

java.lang.Object
  extended by org.apache.geronimo.util.crypto.params.DHParameters
All Implemented Interfaces:
CipherParameters

public class DHParameters
extends Object
implements CipherParameters


Constructor Summary
DHParameters(BigInteger p, BigInteger g)
           
DHParameters(BigInteger p, BigInteger g, BigInteger q, int j)
           
DHParameters(BigInteger p, BigInteger g, BigInteger q, int j, DHValidationParameters validation)
           
 
Method Summary
 boolean equals(Object obj)
           
 BigInteger getG()
           
 int getJ()
          Return the private value length in bits - if set, zero otherwise (use bitLength(P) - 1).
 BigInteger getP()
           
 BigInteger getQ()
           
 DHValidationParameters getValidationParameters()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHParameters

public DHParameters(BigInteger p,
                    BigInteger g)

DHParameters

public DHParameters(BigInteger p,
                    BigInteger g,
                    BigInteger q,
                    int j)

DHParameters

public DHParameters(BigInteger p,
                    BigInteger g,
                    BigInteger q,
                    int j,
                    DHValidationParameters validation)
Method Detail

getP

public BigInteger getP()

getG

public BigInteger getG()

getQ

public BigInteger getQ()

getJ

public int getJ()
Return the private value length in bits - if set, zero otherwise (use bitLength(P) - 1).

Returns:
the private value length in bits, zero otherwise.

getValidationParameters

public DHValidationParameters getValidationParameters()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.