| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectcom.sshtools.j2ssh.openssh.OpenSSHPrivateKeyFormatConstructor Summary | |
| |
Method Summary | |
byte[] |
|
byte[] |
|
String | |
boolean |
|
boolean |
|
boolean |
|
String |
|
public OpenSSHPrivateKeyFormat()
Creates a new OpenSSHPrivateKeyFormat object.
public byte[] decryptKeyblob(byte[] formattedKey,
String passphrase)
throws InvalidSshKeyException
- Specified by:
- decryptKeyblob in interface SshPrivateKeyFormat
- Parameters:
formattedKey-passphrase-
- Returns:
- Throws:
InvalidSshKeyException-
public byte[] encryptKeyblob(byte[] keyblob,
String passphrase)
throws InvalidSshKeyException
- Specified by:
- encryptKeyblob in interface SshPrivateKeyFormat
- Parameters:
keyblob-passphrase-
- Returns:
- Throws:
InvalidSshKeyException-
public String getFormatType()
- Specified by:
- getFormatType in interface SshPrivateKeyFormat
- Returns:
public boolean isFormatted(byte[] formattedKey)
- Specified by:
- isFormatted in interface SshPrivateKeyFormat
- Parameters:
formattedKey-
- Returns:
public boolean isPassphraseProtected(byte[] formattedKey)
- Specified by:
- isPassphraseProtected in interface SshPrivateKeyFormat
- Parameters:
formattedKey-
- Returns:
public boolean supportsAlgorithm(String algorithm)
- Specified by:
- supportsAlgorithm in interface SshPrivateKeyFormat
- Parameters:
algorithm-
- Returns:
public String toString()
- Returns: