com.sshtools.j2ssh.transport.publickey
Interface SshPrivateKeyFormat

All Known Implementing Classes:
OpenSSHPrivateKeyFormat, SshtoolsPrivateKeyFormat

public interface SshPrivateKeyFormat

Version:
$Revision: 1.19 $
Author:
$author$

Method Summary
 byte[] decryptKeyblob(byte[] formattedKey, java.lang.String passphrase)
           
 byte[] encryptKeyblob(byte[] keyblob, java.lang.String passphrase)
           
 java.lang.String getFormatType()
           
 boolean isFormatted(byte[] formattedKey)
           
 boolean isPassphraseProtected(byte[] formattedKey)
           
 boolean supportsAlgorithm(java.lang.String algorithm)
           
 

Method Detail

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.