Class OpenSSHPublicKeyFormat
java.lang.Object
com.sshtools.j2ssh.transport.publickey.OpenSSHPublicKeyFormat
- All Implemented Interfaces:
SshPublicKeyFormat
- Version:
- $Revision: 1.19 $
- Author:
- $author$
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new OpenSSHPublicKeyFormat object.OpenSSHPublicKeyFormat
(String comment) Creates a new OpenSSHPublicKeyFormat object. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
formatKey
(byte[] keyblob) byte[]
getKeyBlob
(byte[] formattedKey) boolean
isFormatted
(byte[] formattedKey) void
setComment
(String comment) boolean
supportsAlgorithm
(String algorithm)
-
Constructor Details
-
OpenSSHPublicKeyFormat
Creates a new OpenSSHPublicKeyFormat object.- Parameters:
comment
-
-
OpenSSHPublicKeyFormat
public OpenSSHPublicKeyFormat()Creates a new OpenSSHPublicKeyFormat object.
-
-
Method Details
-
setComment
- Specified by:
setComment
in interfaceSshPublicKeyFormat
- Parameters:
comment
-
-
getComment
- Specified by:
getComment
in interfaceSshPublicKeyFormat
- Returns:
-
getFormatType
- Specified by:
getFormatType
in interfaceSshPublicKeyFormat
- Returns:
-
getKeyBlob
- Specified by:
getKeyBlob
in interfaceSshPublicKeyFormat
- Parameters:
formattedKey
-- Returns:
- Throws:
InvalidSshKeyException
-
formatKey
public byte[] formatKey(byte[] keyblob) - Specified by:
formatKey
in interfaceSshPublicKeyFormat
- Parameters:
keyblob
-- Returns:
-
isFormatted
public boolean isFormatted(byte[] formattedKey) - Specified by:
isFormatted
in interfaceSshPublicKeyFormat
- Parameters:
formattedKey
-- Returns:
-
supportsAlgorithm
- Specified by:
supportsAlgorithm
in interfaceSshPublicKeyFormat
- Parameters:
algorithm
-- Returns:
-