public class DSAGroup extends CryptoKey
| Modifier and Type | Field and Description |
|---|---|
protected static int |
Q_BIT_LENGTH |
| Modifier | Constructor and Description |
|---|---|
protected |
DSAGroup() |
|
DSAGroup(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asBytes() |
SimpleFieldSet |
asFieldSet() |
DSAGroup |
cloneKey() |
static DSAGroup |
create(SimpleFieldSet fs) |
boolean |
equals(DSAGroup o) |
boolean |
equals(java.lang.Object o) |
byte[] |
fingerprint() |
java.math.BigInteger |
getG() |
java.math.BigInteger |
getP() |
java.math.BigInteger |
getQ() |
int |
hashCode() |
java.lang.String |
keyType() |
static CryptoKey |
read(java.io.InputStream i)
Parses a DSA Group from a string, where p, q, and g are in unsigned
hex-strings, separated by a commas
|
java.lang.String |
toLongString() |
java.lang.String |
toString() |
fingerprint, fingerprintToString, main, verboseToStringprotected static final int Q_BIT_LENGTH
public DSAGroup(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
protected DSAGroup()
public static CryptoKey read(java.io.InputStream i) throws java.io.IOException, CryptFormatException
java.io.IOExceptionCryptFormatExceptionpublic java.math.BigInteger getP()
public java.math.BigInteger getQ()
public java.math.BigInteger getG()
public byte[] fingerprint()
fingerprint in class CryptoKeypublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean equals(DSAGroup o)
public int hashCode()
hashCode in class java.lang.Objectpublic SimpleFieldSet asFieldSet()
public static DSAGroup create(SimpleFieldSet fs) throws IllegalBase64Exception, FSParseException
public java.lang.String toLongString()
public DSAGroup cloneKey()