public class SshRsaPrivateKey extends SshPrivateKey
Constructor and Description |
---|
SshRsaPrivateKey(byte[] encoded)
Creates a new SshRsaPrivateKey object.
|
SshRsaPrivateKey(java.security.interfaces.RSAPrivateKey prv,
java.security.interfaces.RSAPublicKey pub)
Creates a new SshRsaPrivateKey object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
byte[] |
generateSignature(byte[] data) |
java.lang.String |
getAlgorithmName() |
int |
getBitLength() |
byte[] |
getEncoded() |
SshPublicKey |
getPublicKey() |
int |
hashCode() |
public SshRsaPrivateKey(java.security.interfaces.RSAPrivateKey prv, java.security.interfaces.RSAPublicKey pub)
prv
- pub
- public SshRsaPrivateKey(byte[] encoded) throws InvalidSshKeyException
encoded
- InvalidSshKeyException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getAlgorithmName()
getAlgorithmName
in class SshPrivateKey
public int getBitLength()
getBitLength
in class SshPrivateKey
public byte[] getEncoded()
getEncoded
in class SshPrivateKey
public SshPublicKey getPublicKey()
getPublicKey
in class SshPrivateKey
public byte[] generateSignature(byte[] data)
generateSignature
in class SshPrivateKey
data
- Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.