1package org.bouncycastle.crypto.params;
2
3public class DSAValidationParameters
4{
5    private byte[]  seed;
6    private int     counter;
7
8    public DSAValidationParameters(
9        byte[]  seed,
10        int     counter)
11    {
12        this.seed = seed;
13        this.counter = counter;
14    }
15
16    public int getCounter()
17    {
18        return counter;
19    }
20
21    public byte[] getSeed()
22    {
23        return seed;
24    }
25
26    public boolean equals(
27        Object o)
28    {
29        if (!(o instanceof DSAValidationParameters))
30        {
31            return false;
32        }
33
34        DSAValidationParameters  other = (DSAValidationParameters)o;
35
36        if (other.counter != this.counter)
37        {
38            return false;
39        }
40
41        if (other.seed.length != this.seed.length)
42        {
43            return false;
44        }
45
46        for (int i = 0; i != other.seed.length; i++)
47        {
48            if (other.seed[i] != this.seed[i])
49            {
50                return false;
51            }
52        }
53
54        return true;
55    }
56}
57