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
ConstructorsModifierConstructorDescriptionprotectedBase64EncodedFileFormat(String begin, String end) Creates a new Base64EncodedFileFormat object. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]formatKey(byte[] keyblob) getHeaderValue(String headerTag) byte[]getKeyBlob(byte[] formattedKey) booleanisFormatted(byte[] formattedKey) voidsetHeaderValue(String headerTag, String headerValue)
-
Field Details
-
begin
-
end
-
-
Constructor Details
-
Base64EncodedFileFormat
Creates a new Base64EncodedFileFormat object.- Parameters:
begin-end-
-
-
Method Details
-
getFormatType
- Specified by:
getFormatTypein interfaceSshKeyFormatConversion- Returns:
-
isFormatted
public boolean isFormatted(byte[] formattedKey) - Specified by:
isFormattedin interfaceSshKeyFormatConversion- Parameters:
formattedKey-- Returns:
-
setHeaderValue
- Parameters:
headerTag-headerValue-
-
getHeaderValue
- Parameters:
headerTag-- Returns:
-
getKeyBlob
- Specified by:
getKeyBlobin interfaceSshKeyFormatConversion- Parameters:
formattedKey-- Returns:
- Throws:
InvalidSshKeyException
-
formatKey
public byte[] formatKey(byte[] keyblob) - Specified by:
formatKeyin interfaceSshKeyFormatConversion- Parameters:
keyblob-- Returns:
-