com.mindbright.ssh
Class SSHRSAKeyFile
java.lang.Object
com.mindbright.ssh.SSHRSAKeyFile
public class SSHRSAKeyFile
- extends java.lang.Object
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,
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 RSAPublicKey getPublic()
getPrivate
public RSAPrivateCrtKey getPrivate(java.lang.String passwd)