FileDocCategorySizeDatePackage
ElGamalKeyParameters.javaAPI DocAzureus 3.0.3.4720Tue Jun 08 05:13:00 BST 2004org.bouncycastle.crypto.params

ElGamalKeyParameters.java

package org.bouncycastle.crypto.params;


public class ElGamalKeyParameters
    extends AsymmetricKeyParameter
{
    private ElGamalParameters    params;

    protected ElGamalKeyParameters(
        boolean         isPrivate,
        ElGamalParameters    params)
    {
        super(isPrivate);

        this.params = params;
    }   

    public ElGamalParameters getParameters()
    {
        return params;
    }

    public boolean equals(
        Object  obj)
    {
        if (!(obj instanceof ElGamalKeyParameters))
        {
            return false;
        }

        ElGamalKeyParameters    dhKey = (ElGamalKeyParameters)obj;

        return (params != null && !params.equals(dhKey.getParameters()));
    }
}