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.String
getComment()
java.lang.String
getFormatType()
byte[]
getKeyBlob(byte[] formattedKey)
boolean
isFormatted(byte[] formattedKey)
void
setComment(java.lang.String comment)
boolean
supportsAlgorithm(java.lang.String algorithm)
-
-
-
Method Detail
-
setComment
public void setComment(java.lang.String comment)
- Specified by:
setComment
in interfaceSshPublicKeyFormat
- Parameters:
comment
-
-
getComment
public java.lang.String getComment()
- Specified by:
getComment
in interfaceSshPublicKeyFormat
- Returns:
-
getFormatType
public java.lang.String getFormatType()
- Specified by:
getFormatType
in interfaceSshPublicKeyFormat
- Returns:
-
getKeyBlob
public byte[] getKeyBlob(byte[] formattedKey) throws InvalidSshKeyException
- 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
public boolean supportsAlgorithm(java.lang.String algorithm)
- Specified by:
supportsAlgorithm
in interfaceSshPublicKeyFormat
- Parameters:
algorithm
-- Returns:
-
-