com.mindbright.ssh
Class SSHRSAPublicKeyString
java.lang.Object
com.mindbright.ssh.SSHRSAPublicKeyString
public class SSHRSAPublicKeyString
- extends java.lang.Object
Constructor Summary |
SSHRSAPublicKeyString(java.lang.String opts,
java.lang.String user,
java.math.BigInteger e,
java.math.BigInteger n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SSHRSAPublicKeyString
public SSHRSAPublicKeyString(java.lang.String opts,
java.lang.String user,
java.math.BigInteger e,
java.math.BigInteger n)
throws java.io.IOException
- Throws:
java.io.IOException
getPublicExponent
public java.math.BigInteger getPublicExponent()
getModulus
public java.math.BigInteger getModulus()
getKey
public java.security.interfaces.RSAPublicKey getKey()
createKey
public static SSHRSAPublicKeyString createKey(java.lang.String opts,
java.lang.String pubKey)
throws java.util.NoSuchElementException,
java.io.IOException
- Throws:
java.util.NoSuchElementException
java.io.IOException
getOpts
public java.lang.String getOpts()
getUser
public java.lang.String getUser()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
toFile
public void toFile(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException