Class OpenSSHPublicKeyFormat
- java.lang.Object
-
- com.sshtools.j2ssh.transport.publickey.OpenSSHPublicKeyFormat
-
- All Implemented Interfaces:
SshPublicKeyFormat
public class OpenSSHPublicKeyFormat extends java.lang.Object implements SshPublicKeyFormat
- Version:
- $Revision: 1.19 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description OpenSSHPublicKeyFormat()Creates a new OpenSSHPublicKeyFormat object.OpenSSHPublicKeyFormat(java.lang.String comment)Creates a new OpenSSHPublicKeyFormat object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]formatKey(byte[] keyblob)java.lang.StringgetComment()java.lang.StringgetFormatType()byte[]getKeyBlob(byte[] formattedKey)booleanisFormatted(byte[] formattedKey)voidsetComment(java.lang.String comment)booleansupportsAlgorithm(java.lang.String algorithm)
-
-
-
Method Detail
-
setComment
public void setComment(java.lang.String comment)
- Specified by:
setCommentin interfaceSshPublicKeyFormat- Parameters:
comment-
-
getComment
public java.lang.String getComment()
- Specified by:
getCommentin interfaceSshPublicKeyFormat- Returns:
-
getFormatType
public java.lang.String getFormatType()
- Specified by:
getFormatTypein interfaceSshPublicKeyFormat- Returns:
-
getKeyBlob
public byte[] getKeyBlob(byte[] formattedKey) throws InvalidSshKeyException- 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
public boolean supportsAlgorithm(java.lang.String algorithm)
- Specified by:
supportsAlgorithmin interfaceSshPublicKeyFormat- Parameters:
algorithm-- Returns:
-
-