com.sshtools.j2ssh.transport.publickey

Interface SshPrivateKeyFormat

Known Implementing Classes:
OpenSSHPrivateKeyFormat, SshtoolsPrivateKeyFormat

public interface SshPrivateKeyFormat

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

Method Summary

byte[]
decryptKeyblob(byte[] formattedKey, String passphrase)
byte[]
encryptKeyblob(byte[] keyblob, String passphrase)
String
getFormatType()
boolean
isFormatted(byte[] formattedKey)
boolean
isPassphraseProtected(byte[] formattedKey)
boolean
supportsAlgorithm(String algorithm)

Method Details

decryptKeyblob

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

encryptKeyblob

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

getFormatType

public String getFormatType()
Returns:

isFormatted

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

isPassphraseProtected

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

supportsAlgorithm

public boolean supportsAlgorithm(String algorithm)
Parameters:
algorithm -
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.