com.sshtools.j2ssh.transport.publickey

Class Base64EncodedFileFormat

Implemented Interfaces:
SshKeyFormatConversion
Known Direct Subclasses:
SECSHPublicKeyFormat, SshtoolsPrivateKeyFormat

public abstract class Base64EncodedFileFormat
extends java.lang.Object
implements SshKeyFormatConversion

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

Field Summary

protected String
begin
protected String
end

Constructor Summary

Base64EncodedFileFormat(String begin, String end)
Creates a new Base64EncodedFileFormat object.

Method Summary

byte[]
formatKey(byte[] keyblob)
String
getFormatType()
String
getHeaderValue(String headerTag)
byte[]
getKeyBlob(byte[] formattedKey)
boolean
isFormatted(byte[] formattedKey)
void
setHeaderValue(String headerTag, String headerValue)

Field Details

begin

protected String begin

end

protected String end

Constructor Details

Base64EncodedFileFormat

protected Base64EncodedFileFormat(String begin,
                                  String end)
Creates a new Base64EncodedFileFormat object.
Parameters:
begin -
end -

Method Details

formatKey

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

getFormatType

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

getHeaderValue

public String getHeaderValue(String headerTag)
Parameters:
headerTag -
Returns:

getKeyBlob

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

isFormatted

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

setHeaderValue

public void setHeaderValue(String headerTag,
                           String headerValue)
Parameters:
headerTag -
headerValue -

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