public static boolean saveDSAKeyPairFile(String uname,KeyPair kp){
  boolean success=false;
  if (saveDSAPrivateKeyFile(uname,(DSAPrivateKey)kp.getPrivate())) {
    success=saveDSAPublicKeyFile(uname,(DSAPublicKey)kp.getPublic());
  }
  return success;
}

public static boolean saveDSAKeyPairFile ( String uname , KeyPair kp ) { boolean success = false ; if ( saveDSAPrivateKeyFile ( uname , ( DSAPrivateKey ) kp . getPrivate ( ) ) ) { success = saveDSAPublicKeyFile ( uname , ( DSAPublicKey ) kp . getPublic ( ) ) ; } return success ; }
saves the given key pair to disk . generates an empty keystore for the private key if one doesn ' t exist .
