com.sshtools.j2ssh.openssh

Class DSAKeyInfo

Implemented Interfaces:
KeyInfo

public class DSAKeyInfo
extends java.lang.Object
implements KeyInfo

Version:
$Revision: 1.12 $
Author:
$author$

Constructor Summary

DSAKeyInfo(BigInteger p, BigInteger q, BigInteger g, BigInteger x, BigInteger y)
Creates a new DSAKeyInfo object.

Method Summary

static DSAKeyInfo
getDSAKeyInfo(SimpleASNReader asn)
BigInteger
getG()
BigInteger
getP()
KeySpec
getPrivateKeySpec()
KeySpec
getPublicKeySpec()
BigInteger
getQ()
BigInteger
getX()
BigInteger
getY()
static void
writeDSAKeyInfo(SimpleASNWriter asn, DSAKeyInfo keyInfo)

Constructor Details

DSAKeyInfo

public DSAKeyInfo(BigInteger p,
                  BigInteger q,
                  BigInteger g,
                  BigInteger x,
                  BigInteger y)
Creates a new DSAKeyInfo object.
Parameters:
p -
q -
g -
x -
y -

Method Details

getDSAKeyInfo

public static DSAKeyInfo getDSAKeyInfo(SimpleASNReader asn)
            throws IOException
Parameters:
asn -
Returns:

getG

public BigInteger getG()
Returns:

getP

public BigInteger getP()
Returns:

getPrivateKeySpec

public KeySpec getPrivateKeySpec()
Specified by:
getPrivateKeySpec in interface KeyInfo
Returns:

getPublicKeySpec

public KeySpec getPublicKeySpec()
Specified by:
getPublicKeySpec in interface KeyInfo
Returns:

getQ

public BigInteger getQ()
Returns:

getX

public BigInteger getX()
Returns:

getY

public BigInteger getY()
Returns:

writeDSAKeyInfo

public static void writeDSAKeyInfo(SimpleASNWriter asn,
                                   DSAKeyInfo keyInfo)
Parameters:
asn -
keyInfo -

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.