Class Ssh2DsaPrivateKey
java.lang.Object
com.sshtools.common.ssh.components.jce.Ssh2BaseJCEPrivateKey
com.sshtools.common.ssh.components.jce.Ssh2BaseDsaPrivateKey
com.sshtools.common.ssh.components.jce.Ssh2DsaPrivateKey
- All Implemented Interfaces:
SshDsaPrivateKey,SshPrivateKey
DSA private key implementation for the SSH2 protocol.
- Author:
- Lee David Painter
-
Field Summary
FieldsFields inherited from class com.sshtools.common.ssh.components.jce.Ssh2BaseJCEPrivateKey
customProvider -
Constructor Summary
ConstructorsConstructorDescriptionSsh2DsaPrivateKey(BigInteger p, BigInteger q, BigInteger g, BigInteger x, BigInteger y) Ssh2DsaPrivateKey(DSAPrivateKey prv, DSAPublicKey pub) -
Method Summary
Methods inherited from class com.sshtools.common.ssh.components.jce.Ssh2BaseDsaPrivateKey
equals, getAlgorithm, hashCode, sign, signMethods inherited from class com.sshtools.common.ssh.components.jce.Ssh2BaseJCEPrivateKey
getJCESignatureMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sshtools.common.ssh.components.SshDsaPrivateKey
signMethods inherited from interface com.sshtools.common.ssh.components.SshPrivateKey
getAlgorithm, sign
-
Field Details
-
prv
-
pub
-
-
Constructor Details
-
Ssh2DsaPrivateKey
-
Ssh2DsaPrivateKey
public Ssh2DsaPrivateKey(DSAPrivateKey prv) throws NoSuchAlgorithmException, InvalidKeySpecException -
Ssh2DsaPrivateKey
public Ssh2DsaPrivateKey(BigInteger p, BigInteger q, BigInteger g, BigInteger x, BigInteger y) throws SshException - Throws:
SshException
-
-
Method Details
-
getJCEPrivateKey
- Specified by:
getJCEPrivateKeyin interfaceSshDsaPrivateKey- Specified by:
getJCEPrivateKeyin interfaceSshPrivateKey- Overrides:
getJCEPrivateKeyin classSsh2BaseJCEPrivateKey
-
getPublicKey
- Specified by:
getPublicKeyin interfaceSshDsaPrivateKey- Specified by:
getPublicKeyin classSsh2BaseDsaPrivateKey
-
getX
- Specified by:
getXin interfaceSshDsaPrivateKey
-