Interface SshPrivateKeyFormat
- All Known Implementing Classes:
OpenSSHPrivateKeyFormat
,SshtoolsPrivateKeyFormat
public interface SshPrivateKeyFormat
- Version:
- $Revision: 1.19 $
- Author:
- $author$
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decryptKeyblob
(byte[] formattedKey, String passphrase) byte[]
encryptKeyblob
(byte[] keyblob, String passphrase) boolean
isFormatted
(byte[] formattedKey) boolean
isPassphraseProtected
(byte[] formattedKey) boolean
supportsAlgorithm
(String algorithm)
-
Method Details
-
isPassphraseProtected
boolean isPassphraseProtected(byte[] formattedKey) - Parameters:
formattedKey
-- Returns:
-
isFormatted
boolean isFormatted(byte[] formattedKey) - Parameters:
formattedKey
-- Returns:
-
decryptKeyblob
- Parameters:
formattedKey
-passphrase
-- Returns:
- Throws:
InvalidSshKeyException
-
encryptKeyblob
- Parameters:
keyblob
-passphrase
-- Returns:
- Throws:
InvalidSshKeyException
-
supportsAlgorithm
- Parameters:
algorithm
-- Returns:
-
getFormatType
String getFormatType()- Returns:
-