com.sshtools.j2ssh.transport.publickey

Class SshKeyGenerator


public class SshKeyGenerator
extends java.lang.Object

Constructor Summary

SshKeyGenerator()
Creates a new SshKeyGenerator object.

Method Summary

static void
changePassphrase(File f, String oldPassphrase, String newPassphrase)
static String
convertPublicKeyFile(File f, SshPublicKeyFormat convert)
void
generateKeyPair(String type, int bits, String filename, String username, String passphrase)
static void
main(String[] args)
static void
processCommandLine(String[] args)

Constructor Details

SshKeyGenerator

public SshKeyGenerator()
Creates a new SshKeyGenerator object.

Method Details

changePassphrase

public static void changePassphrase(File f,
                                    String oldPassphrase,
                                    String newPassphrase)
            throws IOException,
                   InvalidSshKeyException
Parameters:
f -
oldPassphrase -
newPassphrase -

convertPublicKeyFile

public static String convertPublicKeyFile(File f,
                                          SshPublicKeyFormat convert)
            throws InvalidSshKeyException,
                   IOException
Parameters:
f -
convert -
Returns:

generateKeyPair

public void generateKeyPair(String type,
                            int bits,
                            String filename,
                            String username,
                            String passphrase)
            throws IOException
Parameters:
type -
bits -
filename -
username -
passphrase -

main

public static void main(String[] args)
Parameters:
args -

processCommandLine

public static void processCommandLine(String[] args)
Parameters:
args -

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