Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class DefaultTlsDHVerifier

java.lang.Object
  extended byorg.bouncycastle.crypto.tls.DefaultTlsDHVerifier
All Implemented Interfaces:
TlsDHVerifier

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public class DefaultTlsDHVerifier
extends java.lang.Object
implements TlsDHVerifier


Field Summary
protected static java.util.Vector DEFAULT_GROUPS
          Deprecated.  
static int DEFAULT_MINIMUM_PRIME_BITS
          Deprecated.  
protected  java.util.Vector groups
          Deprecated.  
protected  int minimumPrimeBits
          Deprecated.  
 
Constructor Summary
DefaultTlsDHVerifier()
          Deprecated. Accept various standard DH groups with 'P' at least DEFAULT_MINIMUM_PRIME_BITS bits.
DefaultTlsDHVerifier(int minimumPrimeBits)
          Deprecated. Accept various standard DH groups with 'P' at least the specified number of bits.
DefaultTlsDHVerifier(java.util.Vector groups, int minimumPrimeBits)
          Deprecated. Accept a custom set of group parameters, subject to a minimum bitlength for 'P'.
 
Method Summary
 boolean accept(DHParameters dhParameters)
          Deprecated. Check whether the given DH parameters are acceptable for use.
protected  boolean areGroupsEqual(DHParameters a, DHParameters b)
          Deprecated.  
protected  boolean areParametersEqual(java.math.BigInteger a, java.math.BigInteger b)
          Deprecated.  
protected  boolean checkGroup(DHParameters dhParameters)
          Deprecated.  
protected  boolean checkMinimumPrimeBits(DHParameters dhParameters)
          Deprecated.  
 int getMinimumPrimeBits()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MINIMUM_PRIME_BITS

public static final int DEFAULT_MINIMUM_PRIME_BITS
Deprecated. 
See Also:
Constant Field Values

DEFAULT_GROUPS

protected static final java.util.Vector DEFAULT_GROUPS
Deprecated. 

groups

protected java.util.Vector groups
Deprecated. 

minimumPrimeBits

protected int minimumPrimeBits
Deprecated. 
Constructor Detail

DefaultTlsDHVerifier

public DefaultTlsDHVerifier()
Deprecated. 
Accept various standard DH groups with 'P' at least DEFAULT_MINIMUM_PRIME_BITS bits.


DefaultTlsDHVerifier

public DefaultTlsDHVerifier(int minimumPrimeBits)
Deprecated. 
Accept various standard DH groups with 'P' at least the specified number of bits.


DefaultTlsDHVerifier

public DefaultTlsDHVerifier(java.util.Vector groups,
                            int minimumPrimeBits)
Deprecated. 
Accept a custom set of group parameters, subject to a minimum bitlength for 'P'.

Parameters:
groups - a Vector of acceptable DHParameters.
Method Detail

accept

public boolean accept(DHParameters dhParameters)
Deprecated. 
Description copied from interface: TlsDHVerifier
Check whether the given DH parameters are acceptable for use.

Specified by:
accept in interface TlsDHVerifier
Parameters:
dhParameters - the DHParameters to check
Returns:
true if (and only if) the specified parameters are acceptable

getMinimumPrimeBits

public int getMinimumPrimeBits()
Deprecated. 

areGroupsEqual

protected boolean areGroupsEqual(DHParameters a,
                                 DHParameters b)
Deprecated. 

areParametersEqual

protected boolean areParametersEqual(java.math.BigInteger a,
                                     java.math.BigInteger b)
Deprecated. 

checkGroup

protected boolean checkGroup(DHParameters dhParameters)
Deprecated. 

checkMinimumPrimeBits

protected boolean checkMinimumPrimeBits(DHParameters dhParameters)
Deprecated. 

Bouncy Castle Cryptography Library 1.64