private String readPasswordFile(String filePath,boolean decodePassword){
  BufferedReader br=null;
  String p=null;
  try {
    br=new BufferedReader(new InputStreamReader(new FileInputStream(filePath)));
    p=br.readLine();
    if (decodePassword) {
      p=decodePassword(p);
    }
  }
 catch (  IOException e) {
    logger.error("Unable to read private key password file " + filePath,e);
  }
 finally {
    if (br != null) {
      try {
        br.close();
      }
 catch (      IOException e) {
        logger.warning("Could not close file " + filePath,e);
      }
    }
  }
  return p;
}

private String readPasswordFile ( String filePath , boolean decodePassword ) { BufferedReader br = null ; String p = null ; try { br = new BufferedReader ( new InputStreamReader ( new FileInputStream ( filePath ) ) ) ; p = br . readLine ( ) ; if ( decodePassword ) { p = decodePassword ( p ) ; } } catch ( IOException e ) { logger . error ( "Unable to read private key password file " + filePath , e ) ; } finally { if ( br != null ) { try { br . close ( ) ; } catch ( IOException e ) { logger . warning ( "Could not close file " + filePath , e ) ; } } } return p ; }
read a keystore password file ( . storepass / . keypass ) .
