com.mindbright.ssh
Class SSHRSAPublicKeyFile
java.lang.Object
com.mindbright.ssh.SSHRSAPublicKeyFile
public class SSHRSAPublicKeyFile
- extends java.lang.Object
Constructor Summary |
SSHRSAPublicKeyFile(java.io.InputStream fileIn,
java.lang.String name,
boolean hostFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSHRSAPublicKeyFile
public SSHRSAPublicKeyFile(java.io.InputStream fileIn,
java.lang.String name,
boolean hostFile)
throws java.io.IOException
- Throws:
java.io.IOException
loadFromFile
public static SSHRSAPublicKeyFile loadFromFile(java.lang.String name,
boolean hostFile)
throws java.io.IOException
- Throws:
java.io.IOException
saveToFile
public void saveToFile(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
elements
public java.util.Enumeration<SSHRSAPublicKeyString> elements()
getPublic
public java.security.interfaces.RSAPublicKey getPublic(java.math.BigInteger n,
java.lang.String user)
checkPublic
public int checkPublic(java.math.BigInteger n,
java.lang.String host)
addPublic
public void addPublic(java.lang.String opts,
java.lang.String user,
java.math.BigInteger e,
java.math.BigInteger n)
throws java.io.IOException
- Throws:
java.io.IOException
removePublic
public void removePublic(java.lang.String host)