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 DSAKeyInfogetDSAKeyInfo(SimpleASNReader asn)java.math.BigIntegergetG()java.math.BigIntegergetP()java.security.spec.KeySpecgetPrivateKeySpec()java.security.spec.KeySpecgetPublicKeySpec()java.math.BigIntegergetQ()java.math.BigIntegergetX()java.math.BigIntegergetY()static voidwriteDSAKeyInfo(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:
getPrivateKeySpecin interfaceKeyInfo- Returns:
-
getPublicKeySpec
public java.security.spec.KeySpec getPublicKeySpec()
- Specified by:
getPublicKeySpecin 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-
-
-