Package com.sshtools.j2ssh.openssh
Class DSAKeyInfo
- java.lang.Object
-
- com.sshtools.j2ssh.openssh.DSAKeyInfo
-
-
Constructor Summary
Constructors Constructor Description DSAKeyInfo(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, java.math.BigInteger x, java.math.BigInteger y)
Creates a new DSAKeyInfo object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DSAKeyInfo
getDSAKeyInfo(SimpleASNReader asn)
java.math.BigInteger
getG()
java.math.BigInteger
getP()
java.security.spec.KeySpec
getPrivateKeySpec()
java.security.spec.KeySpec
getPublicKeySpec()
java.math.BigInteger
getQ()
java.math.BigInteger
getX()
java.math.BigInteger
getY()
static void
writeDSAKeyInfo(SimpleASNWriter asn, DSAKeyInfo keyInfo)
-
-
-
Method Detail
-
getG
public java.math.BigInteger getG()
- Returns:
-
getP
public java.math.BigInteger getP()
- Returns:
-
getQ
public java.math.BigInteger getQ()
- Returns:
-
getX
public java.math.BigInteger getX()
- Returns:
-
getY
public java.math.BigInteger getY()
- Returns:
-
getPrivateKeySpec
public java.security.spec.KeySpec getPrivateKeySpec()
- Specified by:
getPrivateKeySpec
in interfaceKeyInfo
- Returns:
-
getPublicKeySpec
public java.security.spec.KeySpec getPublicKeySpec()
- Specified by:
getPublicKeySpec
in interfaceKeyInfo
- Returns:
-
getDSAKeyInfo
public static DSAKeyInfo getDSAKeyInfo(SimpleASNReader asn) throws java.io.IOException
- Parameters:
asn
-- Returns:
- Throws:
java.io.IOException
-
writeDSAKeyInfo
public static void writeDSAKeyInfo(SimpleASNWriter asn, DSAKeyInfo keyInfo)
- Parameters:
asn
-keyInfo
-
-
-