Interface SshPrivateKeyFormat

All Known Implementing Classes:
OpenSSHPrivateKeyFormat, SshtoolsPrivateKeyFormat

public interface SshPrivateKeyFormat
Version:
$Revision: 1.19 $
Author:
$author$
  • Method Details

    • isPassphraseProtected

      boolean isPassphraseProtected(byte[] formattedKey)
      Parameters:
      formattedKey -
      Returns:
    • isFormatted

      boolean isFormatted(byte[] formattedKey)
      Parameters:
      formattedKey -
      Returns:
    • decryptKeyblob

      byte[] decryptKeyblob(byte[] formattedKey, String passphrase) throws InvalidSshKeyException
      Parameters:
      formattedKey -
      passphrase -
      Returns:
      Throws:
      InvalidSshKeyException
    • encryptKeyblob

      byte[] encryptKeyblob(byte[] keyblob, String passphrase) throws InvalidSshKeyException
      Parameters:
      keyblob -
      passphrase -
      Returns:
      Throws:
      InvalidSshKeyException
    • supportsAlgorithm

      boolean supportsAlgorithm(String algorithm)
      Parameters:
      algorithm -
      Returns:
    • getFormatType

      String getFormatType()
      Returns: