Package com.sshtools.j2ssh.openssh
Class DSAKeyInfo
java.lang.Object
com.sshtools.j2ssh.openssh.DSAKeyInfo
- All Implemented Interfaces:
KeyInfo
- Version:
- $Revision: 1.12 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionDSAKeyInfo(BigInteger p, BigInteger q, BigInteger g, BigInteger x, BigInteger y) Creates a new DSAKeyInfo object. -
Method Summary
Modifier and TypeMethodDescriptionstatic DSAKeyInfogetG()getP()getQ()getX()getY()static voidwriteDSAKeyInfo(SimpleASNWriter asn, DSAKeyInfo keyInfo)
-
Constructor Details
-
DSAKeyInfo
Creates a new DSAKeyInfo object.- Parameters:
p-q-g-x-y-
-
-
Method Details
-
getG
- Returns:
-
getP
- Returns:
-
getQ
- Returns:
-
getX
- Returns:
-
getY
- Returns:
-
getPrivateKeySpec
- Specified by:
getPrivateKeySpecin interfaceKeyInfo- Returns:
-
getPublicKeySpec
- Specified by:
getPublicKeySpecin interfaceKeyInfo- Returns:
-
getDSAKeyInfo
- Parameters:
asn-- Returns:
- Throws:
IOException
-
writeDSAKeyInfo
- Parameters:
asn-keyInfo-
-