com.maverick.ssh.components.jce
Class Ssh2DsaPrivateKey
java.lang.Object
com.maverick.ssh.components.jce.Ssh2DsaPrivateKey
- All Implemented Interfaces:
- SshDsaPrivateKey, SshPrivateKey
- public class Ssh2DsaPrivateKey
- extends java.lang.Object
- implements SshDsaPrivateKey
DSA private key implementation for the SSH2 protocol.
- Author:
- Lee David Painter
|
Field Summary |
protected java.security.interfaces.DSAPrivateKey |
prv
|
|
Constructor Summary |
Ssh2DsaPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x,
java.math.BigInteger y)
|
Ssh2DsaPrivateKey(java.security.interfaces.DSAPrivateKey prv,
java.security.interfaces.DSAPublicKey pub)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
prv
protected java.security.interfaces.DSAPrivateKey prv
Ssh2DsaPrivateKey
public Ssh2DsaPrivateKey(java.security.interfaces.DSAPrivateKey prv,
java.security.interfaces.DSAPublicKey pub)
Ssh2DsaPrivateKey
public Ssh2DsaPrivateKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger x,
java.math.BigInteger y)
throws SshException
sign
public byte[] sign(byte[] data)
throws java.io.IOException
- Description copied from interface:
SshPrivateKey
- Create a signature from the data.
- Specified by:
sign in interface SshDsaPrivateKey
- Throws:
java.io.IOException
getAlgorithm
public java.lang.String getAlgorithm()
- Specified by:
getAlgorithm in interface SshPrivateKey
getPublicKey
public SshDsaPublicKey getPublicKey()
- Specified by:
getPublicKey in interface SshDsaPrivateKey
getX
public java.math.BigInteger getX()
- Specified by:
getX in interface SshDsaPrivateKey
Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.