public class SHA2withDSAParams extends DSAParams
SHA2withDSAParameterSpec
Constructor and Description |
---|
SHA2withDSAParams(ASN1Object obj)
Creates a new DSAParams from the given ASN.1 representation.
|
SHA2withDSAParams(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Creates a new DSAParams object from the given parameters.
|
SHA2withDSAParams(java.security.interfaces.DSAParams params)
Creates a new DSAParams object from the given DSAParams
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this DSAParams object with the given DSAParams object.
|
int |
getCounter()
Gets the counter value.
|
byte[] |
getSeed()
Gets the domain parameter seed.
|
int |
hashCode()
Returns a hash code for this DSAParams object.
|
public SHA2withDSAParams(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
p
- the prime modulusq
- the prime divisorg
- the base generatorpublic SHA2withDSAParams(java.security.interfaces.DSAParams params)
params
- the DSAParamspublic SHA2withDSAParams(ASN1Object obj) throws CodingException
obj
- the DSA parameter as ASN1ObjectCodingException
- if an error occurs when parsing the parameterspublic int getCounter()
public byte[] getSeed()
null
if the domain parameter seed has not been setpublic boolean equals(java.lang.Object obj)
DSAParams