Class Base64EncodedFileFormat
java.lang.Object
com.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormat
- All Implemented Interfaces:
SshKeyFormatConversion
- Direct Known Subclasses:
SECSHPublicKeyFormat
,SshtoolsPrivateKeyFormat
- Version:
- $Revision: 1.17 $
- Author:
- $author$
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Base64EncodedFileFormat
(String begin, String end) Creates a new Base64EncodedFileFormat object. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
formatKey
(byte[] keyblob) getHeaderValue
(String headerTag) byte[]
getKeyBlob
(byte[] formattedKey) boolean
isFormatted
(byte[] formattedKey) void
setHeaderValue
(String headerTag, String headerValue)
-
Field Details
-
begin
-
end
-
-
Constructor Details
-
Base64EncodedFileFormat
Creates a new Base64EncodedFileFormat object.- Parameters:
begin
-end
-
-
-
Method Details
-
getFormatType
- Specified by:
getFormatType
in interfaceSshKeyFormatConversion
- Returns:
-
isFormatted
public boolean isFormatted(byte[] formattedKey) - Specified by:
isFormatted
in interfaceSshKeyFormatConversion
- Parameters:
formattedKey
-- Returns:
-
setHeaderValue
- Parameters:
headerTag
-headerValue
-
-
getHeaderValue
- Parameters:
headerTag
-- Returns:
-
getKeyBlob
- Specified by:
getKeyBlob
in interfaceSshKeyFormatConversion
- Parameters:
formattedKey
-- Returns:
- Throws:
InvalidSshKeyException
-
formatKey
public byte[] formatKey(byte[] keyblob) - Specified by:
formatKey
in interfaceSshKeyFormatConversion
- Parameters:
keyblob
-- Returns:
-