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 protected
Base64EncodedFileFormat(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.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)
-
-
-
Method Detail
-
getFormatType
public java.lang.String getFormatType()
- Specified by:
getFormatType
in interfaceSshKeyFormatConversion
- Returns:
-
isFormatted
public boolean isFormatted(byte[] formattedKey)
- Specified by:
isFormatted
in 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:
getKeyBlob
in interfaceSshKeyFormatConversion
- Parameters:
formattedKey
-- Returns:
- Throws:
InvalidSshKeyException
-
formatKey
public byte[] formatKey(byte[] keyblob)
- Specified by:
formatKey
in interfaceSshKeyFormatConversion
- Parameters:
keyblob
-- Returns:
-
-