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

« back to all changes in this revision

Viewing changes to examples/ChangePassphrase.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 program will demonstrate to change the passphrase for a
 
4
 * private key file instead of creating a new private key.
 
5
 *   $ CLASSPATH=.:../build javac ChangePassphrase.java
 
6
 *   $ CLASSPATH=.:../build java ChangePassphrase private-key
 
7
 * A passphrase will be prompted if the given private-key has been
 
8
 * encrypted.  After successfully loading the content of the
 
9
 * private-key, the new passphrase will be prompted and the given
 
10
 * private-key will be re-encrypted with that new passphrase.
 
11
 *
 
12
 */
2
13
import com.jcraft.jsch.*;
3
14
import javax.swing.*;
4
15