| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectcom.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormatcom.sshtools.j2ssh.transport.publickey.SshtoolsPrivateKeyFormatField Summary |
Fields inherited from class com.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormat | |
begin, end | |
Constructor Summary | |
| |
| |
Method Summary | |
byte[] |
|
byte[] |
|
String | |
boolean |
|
boolean |
|
Methods inherited from class com.sshtools.j2ssh.transport.publickey.Base64EncodedFileFormat | |
formatKey, getFormatType, getHeaderValue, getKeyBlob, isFormatted, setHeaderValue | |
public SshtoolsPrivateKeyFormat()
Creates a new SshtoolsPrivateKeyFormat object.
public SshtoolsPrivateKeyFormat(String subject,
String comment)Creates a new SshtoolsPrivateKeyFormat object.
- Parameters:
subject-comment-
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)
- Specified by:
- encryptKeyblob in interface SshPrivateKeyFormat
- Parameters:
keyblob-passphrase-
- Returns:
public String getFormatType()
- Specified by:
- getFormatType in interface SshPrivateKeyFormat
- getFormatType in interface SshKeyFormatConversion
- Overrides:
- getFormatType in interface Base64EncodedFileFormat
- 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: