com.sshtools.j2ssh.transport.publickey.dsa
Class SshDssPrivateKey
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshPrivateKey
com.sshtools.j2ssh.transport.publickey.dsa.SshDssPrivateKey
class SshDssPrivateKey
- extends SshPrivateKey
Field Summary |
private static org.apache.commons.logging.Log |
log
|
(package private) java.security.interfaces.DSAPrivateKey |
prvkey
|
Constructor Summary |
SshDssPrivateKey(byte[] key)
Creates a new SshDssPrivateKey object. |
SshDssPrivateKey(java.security.interfaces.DSAPrivateKey prvkey)
Creates a new SshDssPrivateKey object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
prvkey
java.security.interfaces.DSAPrivateKey prvkey
SshDssPrivateKey
public SshDssPrivateKey(java.security.interfaces.DSAPrivateKey prvkey)
- Creates a new SshDssPrivateKey object.
- Parameters:
prvkey
-
SshDssPrivateKey
public SshDssPrivateKey(byte[] key)
throws InvalidSshKeyException
- Creates a new SshDssPrivateKey object.
- Parameters:
key
-
- Throws:
InvalidSshKeyException
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
- Parameters:
obj
-
- Returns:
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
- Returns:
getAlgorithmName
public java.lang.String getAlgorithmName()
- Specified by:
getAlgorithmName
in class SshPrivateKey
- Returns:
getBitLength
public int getBitLength()
- Specified by:
getBitLength
in class SshPrivateKey
- Returns:
getEncoded
public byte[] getEncoded()
- Specified by:
getEncoded
in class SshPrivateKey
- Returns:
getPublicKey
public SshPublicKey getPublicKey()
- Specified by:
getPublicKey
in class SshPrivateKey
- Returns:
generateSignature
public byte[] generateSignature(byte[] data)
throws InvalidSshKeySignatureException
- Specified by:
generateSignature
in class SshPrivateKey
- Parameters:
data
-
- Returns:
-
- Throws:
InvalidSshKeySignatureException
getY
private java.math.BigInteger getY()