com.sshtools.j2ssh.transport.publickey
Interface SshPrivateKeyFormat
- All Known Implementing Classes:
- OpenSSHPrivateKeyFormat, SshtoolsPrivateKeyFormat
public interface SshPrivateKeyFormat
- Version:
- $Revision: 1.19 $
- Author:
- $author$
isPassphraseProtected
boolean isPassphraseProtected(byte[] formattedKey)
- Parameters:
formattedKey
-
- Returns:
isFormatted
boolean isFormatted(byte[] formattedKey)
- Parameters:
formattedKey
-
- Returns:
decryptKeyblob
byte[] decryptKeyblob(byte[] formattedKey,
java.lang.String passphrase)
throws InvalidSshKeyException
- Parameters:
formattedKey
- passphrase
-
- Returns:
-
- Throws:
InvalidSshKeyException
encryptKeyblob
byte[] encryptKeyblob(byte[] keyblob,
java.lang.String passphrase)
throws InvalidSshKeyException
- Parameters:
keyblob
- passphrase
-
- Returns:
-
- Throws:
InvalidSshKeyException
supportsAlgorithm
boolean supportsAlgorithm(java.lang.String algorithm)
- Parameters:
algorithm
-
- Returns:
getFormatType
java.lang.String getFormatType()
- Returns:
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.