com.sshtools.j2ssh.transport.publickey
Class SECSHPublicKeyFormat

java.lang.Object
  extended by com.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormat
      extended by com.sshtools.j2ssh.transport.publickey.SECSHPublicKeyFormat
All Implemented Interfaces:
SshKeyFormatConversion, SshPublicKeyFormat

public class SECSHPublicKeyFormat
extends Base64EncodedFileFormat
implements SshPublicKeyFormat

Version:
$Revision: 1.16 $
Author:
$author$

Field Summary
 
Fields inherited from class com.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormat
begin, end
 
Constructor Summary
SECSHPublicKeyFormat()
          Creates a new SECSHPublicKeyFormat object.
SECSHPublicKeyFormat(java.lang.String subject, java.lang.String comment)
          Creates a new SECSHPublicKeyFormat object.
 
Method Summary
 java.lang.String getComment()
           
 java.lang.String getFormatType()
           
 void setComment(java.lang.String comment)
           
 boolean supportsAlgorithm(java.lang.String algorithm)
           
 
Methods inherited from class com.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormat
formatKey, getHeaderValue, getKeyBlob, isFormatted, setHeaderValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sshtools.j2ssh.transport.publickey.SshPublicKeyFormat
formatKey, getKeyBlob, isFormatted
 

Constructor Detail

SECSHPublicKeyFormat

public SECSHPublicKeyFormat(java.lang.String subject,
                            java.lang.String comment)
Creates a new SECSHPublicKeyFormat object.

Parameters:
subject -
comment -

SECSHPublicKeyFormat

public SECSHPublicKeyFormat()
Creates a new SECSHPublicKeyFormat 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 SshKeyFormatConversion
Specified by:
getFormatType in interface SshPublicKeyFormat
Overrides:
getFormatType in class Base64EncodedFileFormat
Returns:

supportsAlgorithm

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


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.