com.sshtools.publickey
Class Ssh1RsaPublicKeyFile

java.lang.Object
  extended by com.sshtools.publickey.Ssh1RsaPublicKeyFile
All Implemented Interfaces:
SshPublicKeyFile

public class Ssh1RsaPublicKeyFile
extends Object
implements SshPublicKeyFile

Author:
Lee David Painter

Constructor Summary
Ssh1RsaPublicKeyFile(byte[] formattedkey)
           
Ssh1RsaPublicKeyFile(SshPublicKey key)
           
 
Method Summary
 String getComment()
          Get the comment applied to the key file.
 byte[] getFormattedKey()
          Get the formatted key.
 String getOptions()
          Get the options string applied to the key file
 SshPublicKey toPublicKey()
          Convert the key file into a usable SshPublicKey.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ssh1RsaPublicKeyFile

public Ssh1RsaPublicKeyFile(byte[] formattedkey)
                     throws IOException
Throws:
IOException

Ssh1RsaPublicKeyFile

public Ssh1RsaPublicKeyFile(SshPublicKey key)
                     throws IOException
Throws:
IOException
Method Detail

getFormattedKey

public byte[] getFormattedKey()
Description copied from interface: SshPublicKeyFile
Get the formatted key.

Specified by:
getFormattedKey in interface SshPublicKeyFile
Returns:
byte[]

toPublicKey

public SshPublicKey toPublicKey()
                         throws IOException
Description copied from interface: SshPublicKeyFile
Convert the key file into a usable SshPublicKey.

Specified by:
toPublicKey in interface SshPublicKeyFile
Returns:
SshPublicKey
Throws:
IOException

getComment

public String getComment()
Description copied from interface: SshPublicKeyFile
Get the comment applied to the key file.

Specified by:
getComment in interface SshPublicKeyFile
Returns:
String

getOptions

public String getOptions()
Description copied from interface: SshPublicKeyFile
Get the options string applied to the key file

Specified by:
getOptions in interface SshPublicKeyFile
Returns:
options string


Copyright © 2012. All Rights Reserved.