public void saveStoreFile() {
    JSONArray array = new JSONArray(this.keys.values());

    try {
      if (this.storeFile.exists()) {
        this.storeFile.delete();
        this.storeFile.createNewFile();
      }

      BufferedOutputStream bos = new BufferedOutputStream(
          new FileOutputStream(this.storeFile)
      );
      OutputStreamWriter osw = new OutputStreamWriter(bos);
      osw.write(array.toString());
      osw.close();
    } catch (FileNotFoundException e) {
      log.error("Could not find JSONKeystore file!");
      log.debug(e.toString());
    } catch (IOException e) {
      log.error("Could not create new JSONKeystore file!");
      log.debug(e.toString());
    }
  }
public void saveStoreFile ( ) { JSONArray array = new JSONArray ( this . keys . values ( ) ) ; try { if ( this . storeFile . exists ( ) ) { this . storeFile . delete ( ) ; this . storeFile . createNewFile ( ) ; } BufferedOutputStream bos = new BufferedOutputStream ( new FileOutputStream ( this . storeFile ) ) ; OutputStreamWriter osw = new OutputStreamWriter ( bos ) ; osw . write ( array . toString ( ) ) ; osw . close ( ) ; } catch ( FileNotFoundException e ) { log . error ( "Could not find JSONKeystore file!" ) ; log . debug ( e . toString ( ) ) ; } catch ( IOException e ) { log . error ( "Could not create new JSONKeystore file!" ) ; log . debug ( e . toString ( ) ) ; } }
Writes the {@linkplain JSONKeystore}, as it is in memory, to the
keystore file associated with the instance.