com.maverick.ssh.components.standalone
Class Ssh2DsaPrivateKey

java.lang.Object
  extended bycom.maverick.crypto.publickey.DsaKey
      extended bycom.maverick.crypto.publickey.DsaPrivateKey
          extended bycom.maverick.ssh.components.standalone.Ssh2DsaPrivateKey
All Implemented Interfaces:
SshDsaPrivateKey, SshPrivateKey

public class Ssh2DsaPrivateKey
extends com.maverick.crypto.publickey.DsaPrivateKey
implements SshDsaPrivateKey

Represents a DSA key and implements the SshPrivateKey interface.

Author:
Lee David Painter

Field Summary
 
Fields inherited from class com.maverick.crypto.publickey.DsaPrivateKey
x
 
Fields inherited from class com.maverick.crypto.publickey.DsaKey
g, p, q
 
Constructor Summary
Ssh2DsaPrivateKey(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, java.math.BigInteger x)
           
Ssh2DsaPrivateKey(com.maverick.crypto.publickey.DsaPrivateKey key)
           
 
Method Summary
 java.lang.String getAlgorithm()
           
 SshDsaPublicKey getPublicKey()
           
 
Methods inherited from class com.maverick.crypto.publickey.DsaPrivateKey
equals, getX, sign
 
Methods inherited from class com.maverick.crypto.publickey.DsaKey
getG, getP, getQ
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.maverick.ssh.components.SshDsaPrivateKey
getX, sign
 

Constructor Detail

Ssh2DsaPrivateKey

public Ssh2DsaPrivateKey(com.maverick.crypto.publickey.DsaPrivateKey key)

Ssh2DsaPrivateKey

public Ssh2DsaPrivateKey(java.math.BigInteger p,
                         java.math.BigInteger q,
                         java.math.BigInteger g,
                         java.math.BigInteger x)
Method Detail

getPublicKey

public SshDsaPublicKey getPublicKey()
Specified by:
getPublicKey in interface SshDsaPrivateKey

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface SshPrivateKey


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.