com.sshtools.j2ssh.transport.publickey
Class Base64EncodedFileFormat

java.lang.Object
  extended by com.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormat
All Implemented Interfaces:
SshKeyFormatConversion
Direct Known Subclasses:
SECSHPublicKeyFormat, SshtoolsPrivateKeyFormat

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

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

Field Summary
protected  java.lang.String begin
           
protected  java.lang.String end
           
 
Constructor Summary
protected Base64EncodedFileFormat(java.lang.String begin, java.lang.String end)
          Creates a new Base64EncodedFileFormat object.
 
Method Summary
 byte[] formatKey(byte[] keyblob)
           
 java.lang.String getFormatType()
           
 java.lang.String getHeaderValue(java.lang.String headerTag)
           
 byte[] getKeyBlob(byte[] formattedKey)
           
 boolean isFormatted(byte[] formattedKey)
           
 void setHeaderValue(java.lang.String headerTag, java.lang.String headerValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

begin

protected java.lang.String begin

end

protected java.lang.String end
Constructor Detail

Base64EncodedFileFormat

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

Parameters:
begin -
end -
Method Detail

getFormatType

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

isFormatted

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

setHeaderValue

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

getHeaderValue

public java.lang.String getHeaderValue(java.lang.String headerTag)
Parameters:
headerTag -
Returns:

getKeyBlob

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

formatKey

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


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