com.sshtools.j2ssh.transport.publickey
Class OpenSSHPublicKeyFormat

java.lang.Object
  extended by com.sshtools.j2ssh.transport.publickey.OpenSSHPublicKeyFormat
All Implemented Interfaces:
SshPublicKeyFormat

public class OpenSSHPublicKeyFormat
extends java.lang.Object
implements SshPublicKeyFormat

Version:
$Revision: 1.1 $
Author:
$author$

Field Summary
(package private)  java.lang.String comment
           
 
Constructor Summary
OpenSSHPublicKeyFormat()
          Creates a new OpenSSHPublicKeyFormat object.
OpenSSHPublicKeyFormat(java.lang.String comment)
          Creates a new OpenSSHPublicKeyFormat object.
 
Method Summary
 byte[] formatKey(byte[] keyblob)
           
 java.lang.String getComment()
           
 java.lang.String getFormatType()
           
 byte[] getKeyBlob(byte[] formattedKey)
           
 boolean isFormatted(byte[] formattedKey)
           
 void setComment(java.lang.String comment)
           
 boolean supportsAlgorithm(java.lang.String algorithm)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comment

java.lang.String comment
Constructor Detail

OpenSSHPublicKeyFormat

public OpenSSHPublicKeyFormat(java.lang.String comment)
Creates a new OpenSSHPublicKeyFormat object.

Parameters:
comment -

OpenSSHPublicKeyFormat

public OpenSSHPublicKeyFormat()
Creates a new OpenSSHPublicKeyFormat object.

Method Detail

setComment

public void setComment(java.lang.String comment)
Specified by:
setComment in interface SshPublicKeyFormat
Parameters:
comment -

getComment

public java.lang.String getComment()
Specified by:
getComment in interface SshPublicKeyFormat
Returns:

getFormatType

public java.lang.String getFormatType()
Specified by:
getFormatType in interface SshPublicKeyFormat
Returns:

getKeyBlob

public byte[] getKeyBlob(byte[] formattedKey)
                  throws InvalidSshKeyException
Specified by:
getKeyBlob in interface SshPublicKeyFormat
Parameters:
formattedKey -
Returns:
Throws:
InvalidSshKeyException

formatKey

public byte[] formatKey(byte[] keyblob)
Specified by:
formatKey in interface SshPublicKeyFormat
Parameters:
keyblob -
Returns:

isFormatted

public boolean isFormatted(byte[] formattedKey)
Specified by:
isFormatted in interface SshPublicKeyFormat
Parameters:
formattedKey -
Returns:

supportsAlgorithm

public boolean supportsAlgorithm(java.lang.String algorithm)
Specified by:
supportsAlgorithm in interface SshPublicKeyFormat
Parameters:
algorithm -
Returns: