public class Ssh2DsaPrivateKey extends Object implements SshDsaPrivateKey
Modifier and Type | Field and Description |
---|---|
protected DSAPrivateKey |
prv |
Constructor and Description |
---|
Ssh2DsaPrivateKey(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger x,
BigInteger y) |
Ssh2DsaPrivateKey(DSAPrivateKey prv,
DSAPublicKey pub) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
SshDsaPublicKey |
getPublicKey() |
BigInteger |
getX() |
byte[] |
sign(byte[] data)
Create a signature from the data.
|
protected DSAPrivateKey prv
public Ssh2DsaPrivateKey(DSAPrivateKey prv, DSAPublicKey pub)
public Ssh2DsaPrivateKey(BigInteger p, BigInteger q, BigInteger g, BigInteger x, BigInteger y) throws SshException
SshException
public byte[] sign(byte[] data) throws IOException
SshPrivateKey
sign
in interface SshDsaPrivateKey
sign
in interface SshPrivateKey
IOException
public String getAlgorithm()
getAlgorithm
in interface SshPrivateKey
public SshDsaPublicKey getPublicKey()
getPublicKey
in interface SshDsaPrivateKey
public BigInteger getX()
getX
in interface SshDsaPrivateKey
Copyright © 2014. All rights reserved.