Class Base64EncodedFileFormat
- java.lang.Object
-
- 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$
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBase64EncodedFileFormat(java.lang.String begin, java.lang.String end)Creates a new Base64EncodedFileFormat object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]formatKey(byte[] keyblob)java.lang.StringgetFormatType()java.lang.StringgetHeaderValue(java.lang.String headerTag)byte[]getKeyBlob(byte[] formattedKey)booleanisFormatted(byte[] formattedKey)voidsetHeaderValue(java.lang.String headerTag, java.lang.String headerValue)
-
-
-
Method Detail
-
getFormatType
public java.lang.String getFormatType()
- Specified by:
getFormatTypein interfaceSshKeyFormatConversion- Returns:
-
isFormatted
public boolean isFormatted(byte[] formattedKey)
- Specified by:
isFormattedin interfaceSshKeyFormatConversion- 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:
getKeyBlobin interfaceSshKeyFormatConversion- Parameters:
formattedKey-- Returns:
- Throws:
InvalidSshKeyException
-
formatKey
public byte[] formatKey(byte[] keyblob)
- Specified by:
formatKeyin interfaceSshKeyFormatConversion- Parameters:
keyblob-- Returns:
-
-