private void doit ( String [ ] args ) { try { // load parameters from the commandline loadParameters ( args ) ; // Try to load the private key importKeyPair ( ) ; } catch ( Exception e ) { System . out . println ( "Exception: " + e . getMessage ( ) ) ; e . printStackTrace ( ) ; System . exit ( 23 ) ; } }
Load parameters and perform the import command . Catch any exceptions and clear the password arrays .