Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sshtools.j2ssh.transport.publickey.OpenSSHPublicKeyFormat
Constructor Summary | |
| |
|
Method Summary | |
byte[] |
|
String | |
String | |
byte[] |
|
boolean |
|
void |
|
boolean |
|
public OpenSSHPublicKeyFormat()
Creates a new OpenSSHPublicKeyFormat object.
public OpenSSHPublicKeyFormat(String comment)
Creates a new OpenSSHPublicKeyFormat object.
- Parameters:
comment
-
public byte[] formatKey(byte[] keyblob)
- Specified by:
- formatKey in interface SshPublicKeyFormat
- Parameters:
keyblob
-
- Returns:
public String getFormatType()
- Specified by:
- getFormatType in interface SshPublicKeyFormat
- Returns:
public byte[] getKeyBlob(byte[] formattedKey) throws InvalidSshKeyException
- Specified by:
- getKeyBlob in interface SshPublicKeyFormat
- Parameters:
formattedKey
-
- Returns:
- Throws:
InvalidSshKeyException
-
public boolean isFormatted(byte[] formattedKey)
- Specified by:
- isFormatted in interface SshPublicKeyFormat
- Parameters:
formattedKey
-
- Returns:
public void setComment(String comment)
- Specified by:
- setComment in interface SshPublicKeyFormat
- Parameters:
comment
-
public boolean supportsAlgorithm(String algorithm)
- Specified by:
- supportsAlgorithm in interface SshPublicKeyFormat
- Parameters:
algorithm
-
- Returns: