com.sshtools.j2ssh.transport.publickey

Class SECSHPublicKeyFormat

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(String subject, String comment)
Creates a new SECSHPublicKeyFormat object.

Method Summary

String
getComment()
String
getFormatType()
void
setComment(String comment)
boolean
supportsAlgorithm(String algorithm)

Methods inherited from class com.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormat

formatKey, getFormatType, getHeaderValue, getKeyBlob, isFormatted, setHeaderValue

Constructor Details

SECSHPublicKeyFormat

public SECSHPublicKeyFormat()
Creates a new SECSHPublicKeyFormat object.

SECSHPublicKeyFormat

public SECSHPublicKeyFormat(String subject,
                            String comment)
Creates a new SECSHPublicKeyFormat object.
Parameters:
subject -
comment -

Method Details

getComment

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

getFormatType

public String getFormatType()
Specified by:
getFormatType in interface SshPublicKeyFormat
getFormatType in interface SshKeyFormatConversion
Overrides:
getFormatType in interface Base64EncodedFileFormat
Returns:

setComment

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

supportsAlgorithm

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

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