Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mindbright.ssh
Class SSHRSAPublicKeyString  view SSHRSAPublicKeyString download SSHRSAPublicKeyString.java

java.lang.Object
  extended bymindbright.security.RSAKey
      extended bymindbright.security.RSAPublicKey
          extended bymindbright.ssh.SSHRSAPublicKeyString
All Implemented Interfaces:
mindbright.security.Key, mindbright.security.PublicKey, java.io.Serializable

public class SSHRSAPublicKeyString
extends mindbright.security.RSAPublicKey


Field Summary
(package private)  java.lang.String opts
           
(package private)  java.lang.String user
           
 
Fields inherited from class mindbright.security.RSAKey
 
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.lang.String getOpts()
           
 java.lang.String getUser()
           
 void toFile(java.lang.String fileName)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class mindbright.security.RSAKey
bitLength, getAlgorithm, getE, getEncoded, getFormat, getN
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface mindbright.security.Key
getAlgorithm, getEncoded, getFormat
 

Field Detail

user

java.lang.String user

opts

java.lang.String opts
Constructor Detail

SSHRSAPublicKeyString

public SSHRSAPublicKeyString(java.lang.String opts,
                             java.lang.String user,
                             java.math.BigInteger e,
                             java.math.BigInteger n)
Method Detail

createKey

public static SSHRSAPublicKeyString createKey(java.lang.String opts,
                                              java.lang.String pubKey)
                                       throws java.util.NoSuchElementException

getOpts

public java.lang.String getOpts()

getUser

public java.lang.String getUser()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


toFile

public void toFile(java.lang.String fileName)
            throws java.io.IOException