com.sshtools.publickey
Class SECSHPublicKeyFile

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

public class SECSHPublicKeyFile
extends Base64EncodedFileFormat
implements SshPublicKeyFile


Field Summary
 
Fields inherited from class com.sshtools.publickey.Base64EncodedFileFormat
begin, end
 
Method Summary
 java.lang.String getComment()
          Get the comment applied to the key file.
 byte[] getFormattedKey()
          Get the formatted key.
 void setComment(java.lang.String comment)
           
 SshPublicKey toPublicKey()
          Convert the key file into a usable SshPublicKey.
 java.lang.String toString()
           
 
Methods inherited from class com.sshtools.publickey.Base64EncodedFileFormat
formatKey, getHeaderValue, getKeyBlob, isFormatted, setHeaderValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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

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

getFormattedKey

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

Specified by:
getFormattedKey in interface SshPublicKeyFile
Returns:
byte[]
Throws:
java.io.IOException

setComment

public void setComment(java.lang.String comment)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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