com.mindbright.ssh
Class SSHRSAKeyFile
java.lang.Object
com.mindbright.ssh.SSHRSAKeyFile
public class SSHRSAKeyFile
- extends java.lang.Object
Method Summary |
static void |
createKeyFile(SSH ssh,
java.security.interfaces.RSAPrivateCrtKey privKey,
java.lang.String passwd,
java.lang.String name,
java.lang.String comment)
|
java.lang.String |
getComment()
|
java.security.interfaces.RSAPrivateCrtKey |
getPrivate(java.lang.String passwd)
|
java.security.interfaces.RSAPublicKey |
getPublic()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSHRSAKeyFile
public SSHRSAKeyFile(java.lang.String name)
throws java.io.IOException
- Throws:
java.io.IOException
createKeyFile
public static void createKeyFile(SSH ssh,
java.security.interfaces.RSAPrivateCrtKey privKey,
java.lang.String passwd,
java.lang.String name,
java.lang.String comment)
throws java.io.IOException
- Throws:
java.io.IOException
getComment
public java.lang.String getComment()
getPublic
public java.security.interfaces.RSAPublicKey getPublic()
getPrivate
public java.security.interfaces.RSAPrivateCrtKey getPrivate(java.lang.String passwd)