com.mindbright.ssh
Class SSHRSAPublicKeyString

java.lang.Object
  extended by 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)
           
 
Method Summary
static SSHRSAPublicKeyString createKey(java.lang.String opts, java.lang.String pubKey)
           
 java.security.interfaces.RSAPublicKey getKey()
           
 java.math.BigInteger getModulus()
           
 java.lang.String getOpts()
           
 java.math.BigInteger getPublicExponent()
           
 java.lang.String getUser()
           
 void toFile(java.lang.String fileName)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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