com.sshtools.j2ssh.transport.publickey.rsa
Class SshRsaPrivateKey
java.lang.Object
com.sshtools.j2ssh.transport.publickey.SshPrivateKey
com.sshtools.j2ssh.transport.publickey.rsa.SshRsaPrivateKey
public class SshRsaPrivateKey
- extends SshPrivateKey
- Version:
- $Revision: 1.19 $
- Author:
- $author$
|
Constructor Summary |
SshRsaPrivateKey(byte[] encoded)
Creates a new SshRsaPrivateKey object. |
SshRsaPrivateKey(java.security.interfaces.RSAPrivateKey prv,
java.security.interfaces.RSAPublicKey pub)
Creates a new SshRsaPrivateKey object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
SshRsaPrivateKey
public SshRsaPrivateKey(java.security.interfaces.RSAPrivateKey prv,
java.security.interfaces.RSAPublicKey pub)
- Creates a new SshRsaPrivateKey object.
- Parameters:
prv - pub -
SshRsaPrivateKey
public SshRsaPrivateKey(byte[] encoded)
throws InvalidSshKeyException
- Creates a new SshRsaPrivateKey object.
- Parameters:
encoded -
- 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)
- Specified by:
generateSignature in class SshPrivateKey
- Parameters:
data -
- Returns:
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.