com.sshtools.j2ssh.openssh
Class DSAKeyInfo
java.lang.Object
com.sshtools.j2ssh.openssh.DSAKeyInfo
- All Implemented Interfaces:
- KeyInfo
public class DSAKeyInfo
- extends java.lang.Object
- implements KeyInfo
- Version:
- $Revision: 1.12 $
- Author:
- $author$
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DSAKeyInfo
public 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.
- Parameters:
p
- q
- g
- x
- y
-
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 interface KeyInfo
- Returns:
getPublicKeySpec
public java.security.spec.KeySpec getPublicKeySpec()
- Specified by:
getPublicKeySpec
in interface KeyInfo
- 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
-
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.