Class DSAValidationParameters
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.DSAValidationParameters
-
public class DSAValidationParameters extends java.lang.Object
Validation parameters for confirming DSA parameter generation.
-
-
Constructor Summary
Constructors Constructor Description DSAValidationParameters(byte[] seed)
Base constructor - a seed, the counter will be set to -1.DSAValidationParameters(byte[] seed, int counter)
Constructor with a seed and a (p, q) counter for it.DSAValidationParameters(byte[] seed, int counter, int usageIndex)
Base constructor with a seed, counter, and usage index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getCounter()
Return the (p, q) counter value.byte[]
getSeed()
Return the seed used for the parameter generation.int
getUsageIndex()
Return the usage index, -1 if none given.int
hashCode()
-
-
-
Constructor Detail
-
DSAValidationParameters
public DSAValidationParameters(byte[] seed)
Base constructor - a seed, the counter will be set to -1.- Parameters:
seed
- the seed used to generate the parameters.
-
DSAValidationParameters
public DSAValidationParameters(byte[] seed, int counter)
Constructor with a seed and a (p, q) counter for it.- Parameters:
seed
- the seed used to generate the parameters.counter
- the counter value associated with using the seed to generate the parameters.
-
DSAValidationParameters
public DSAValidationParameters(byte[] seed, int counter, int usageIndex)
Base constructor with a seed, counter, and usage index.- Parameters:
seed
- the seed value.counter
- (p, q) counter - -1 if not avaliable.usageIndex
- the usage index.
-
-
Method Detail
-
getCounter
public int getCounter()
Return the (p, q) counter value.- Returns:
- the (p, q) counter value, -1 if unavailable.
-
getSeed
public byte[] getSeed()
Return the seed used for the parameter generation.- Returns:
- the seed array.
-
getUsageIndex
public int getUsageIndex()
Return the usage index, -1 if none given.- Returns:
- the usage index.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
-