FileDocCategorySizeDatePackage
DHKeyParameters.javaAPI DocAndroid 1.5 API1004Wed May 06 22:41:06 BST 2009org.bouncycastle.crypto.params

DHKeyParameters

public class DHKeyParameters extends AsymmetricKeyParameter

Fields Summary
private DHParameters
params
Constructors Summary
protected DHKeyParameters(boolean isPrivate, DHParameters params)

        super(isPrivate);

        this.params = params;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if (!(obj instanceof DHKeyParameters))
        {
            return false;
        }

        DHKeyParameters    dhKey = (DHKeyParameters)obj;

        if (params == null)
        {
            return dhKey.getParameters() == null;
        }
        else
        { 
            return params.equals(dhKey.getParameters());
        }
    
public DHParametersgetParameters()

        return params;
    
public inthashCode()

        int code = isPrivate() ? 0 : 1;
        
        if (params != null)
        {
            code ^= params.hashCode();
        }
        
        return code;