com.sshtools.j2ssh.transport.publickey

Interface SshPublicKeyFormat

Known Implementing Classes:
OpenSSHPublicKeyFormat, SECSHPublicKeyFormat

public interface SshPublicKeyFormat

Version:
$Revision: 1.17 $
Author:
$author$

Method Summary

byte[]
formatKey(byte[] keyblob)
String
getComment()
String
getFormatType()
byte[]
getKeyBlob(byte[] formattedKey)
boolean
isFormatted(byte[] formattedKey)
void
setComment(String comment)
boolean
supportsAlgorithm(String algorithm)

Method Details

formatKey

public byte[] formatKey(byte[] keyblob)
Parameters:
keyblob -
Returns:

getComment

public String getComment()
Returns:

getFormatType

public String getFormatType()
Returns:

getKeyBlob

public byte[] getKeyBlob(byte[] formattedKey)
            throws InvalidSshKeyException
Parameters:
formattedKey -
Returns:

isFormatted

public boolean isFormatted(byte[] formattedKey)
Parameters:
formattedKey -
Returns:

setComment

public void setComment(String comment)
Parameters:
comment -

supportsAlgorithm

public boolean supportsAlgorithm(String algorithm)
Parameters:
algorithm -
Returns:

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