~ubuntu-branches/ubuntu/trusty/jsch/trusty-proposed

« back to all changes in this revision

Viewing changes to examples/KeyGen.java

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-06 10:50:04 UTC
  • mfrom: (4.2.1 experimental) (6.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140106105004-9al5p968hmaaj78t
Tags: 0.1.50-1ubuntu1
* Resync with Debian unstable.
* Drop dependency on libjzlib-java for continued main inclusion. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
 
2
/**
 
3
 * This progam will demonstrate the DSA keypair generation. 
 
4
 *   $ CLASSPATH=.:../build javac KeyGen.java
 
5
 *   $ CLASSPATH=.:../build java KeyGen rsa output_keyfile comment
 
6
 * or
 
7
 *   $ CLASSPATH=.:../build java KeyGen dsa output_keyfile comment
 
8
 * You will be asked a passphrase for output_keyfile.
 
9
 * If everything works fine, you will get the DSA or RSA keypair, 
 
10
 * output_keyfile and output_keyfile+".pub".
 
11
 * The private key and public key are in the OpenSSH format.
 
12
 *
 
13
 */
2
14
import com.jcraft.jsch.*;
3
15
import javax.swing.*;
4
16