com.sshtools.publickey
Class OpenSSHPublicKeyFile

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

public class OpenSSHPublicKeyFile
extends java.lang.Object
implements SshPublicKeyFile


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

Method Detail

toString

public java.lang.String toString()

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 java.io.IOException
Description copied from interface: SshPublicKeyFile
Convert the key file into a usable SshPublicKey.

Specified by:
toPublicKey in interface SshPublicKeyFile
Returns:
SshPublicKey
Throws:
java.io.IOException

getComment

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

Specified by:
getComment in interface SshPublicKeyFile
Returns:
String


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.