com.mindbright.ssh
public class SSHRSAPublicKeyFile extends java.lang.Object
Constructor and Description |
---|
SSHRSAPublicKeyFile(java.io.InputStream fileIn,
java.lang.String name,
boolean hostFile) |
Modifier and Type | Method and Description |
---|---|
void |
addPublic(java.lang.String opts,
java.lang.String user,
java.math.BigInteger e,
java.math.BigInteger n) |
int |
checkPublic(java.math.BigInteger n,
java.lang.String host) |
java.util.Enumeration<SSHRSAPublicKeyString> |
elements() |
java.security.interfaces.RSAPublicKey |
getPublic(java.math.BigInteger n,
java.lang.String user) |
static SSHRSAPublicKeyFile |
loadFromFile(java.lang.String name,
boolean hostFile) |
void |
removePublic(java.lang.String host) |
void |
saveToFile(java.lang.String fileName) |
public SSHRSAPublicKeyFile(java.io.InputStream fileIn, java.lang.String name, boolean hostFile) throws java.io.IOException
java.io.IOException
public static SSHRSAPublicKeyFile loadFromFile(java.lang.String name, boolean hostFile) throws java.io.IOException
java.io.IOException
public void saveToFile(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public java.util.Enumeration<SSHRSAPublicKeyString> elements()
public java.security.interfaces.RSAPublicKey getPublic(java.math.BigInteger n, java.lang.String user)
public int checkPublic(java.math.BigInteger n, java.lang.String host)
public void addPublic(java.lang.String opts, java.lang.String user, java.math.BigInteger e, java.math.BigInteger n) throws java.io.IOException
java.io.IOException
public void removePublic(java.lang.String host)