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) booleanisFormatted(byte[] formattedKey) voidsetComment(String comment) booleansupportsAlgorithm(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:
setCommentin interfaceSshPublicKeyFormat- Parameters:
comment-
-
getComment
- Specified by:
getCommentin interfaceSshPublicKeyFormat- Returns:
-
getFormatType
- Specified by:
getFormatTypein interfaceSshPublicKeyFormat- Returns:
-
getKeyBlob
- Specified by:
getKeyBlobin interfaceSshPublicKeyFormat- Parameters:
formattedKey-- Returns:
- Throws:
InvalidSshKeyException
-
formatKey
public byte[] formatKey(byte[] keyblob) - Specified by:
formatKeyin interfaceSshPublicKeyFormat- Parameters:
keyblob-- Returns:
-
isFormatted
public boolean isFormatted(byte[] formattedKey) - Specified by:
isFormattedin interfaceSshPublicKeyFormat- Parameters:
formattedKey-- Returns:
-
supportsAlgorithm
- Specified by:
supportsAlgorithmin interfaceSshPublicKeyFormat- Parameters:
algorithm-- Returns:
-