com.sshtools.publickey
Class OpenSSHPublicKeyFile

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

public class OpenSSHPublicKeyFile
extends Object
implements SshPublicKeyFile


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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public String toString()
Overrides:
toString in class Object

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

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

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


Copyright © 2012. All Rights Reserved.