Changeset fd6cb07


Ignore:
Timestamp:
Mar 28, 2019 4:25:36 PM (16 months ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
fd2819c
Parents:
6d2270a
Message:

use SecureFileOutputStream?

Location:
apps/i2ptunnel/java/src/net/i2p/i2ptunnel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/access/AccessFilter.java

    r6d2270a rfd6cb07  
    1010import java.io.FileReader;
    1111import java.io.BufferedReader;
    12 import java.io.FileWriter;
     12import java.io.OutputStreamWriter;
    1313import java.io.BufferedWriter;
    1414import java.io.IOException;
     
    1717import net.i2p.util.SimpleTimer2;
    1818import net.i2p.util.Log;
     19import net.i2p.util.SecureFileOutputStream;
    1920import net.i2p.data.Destination;
    2021import net.i2p.i2ptunnel.I2PTunnelTask;
     
    110111            BufferedWriter writer = null;
    111112            try {
    112                 writer = new BufferedWriter(new FileWriter(file));
     113                writer = new BufferedWriter(
     114                    new OutputStreamWriter(
     115                        new SecureFileOutputStream(file)));
    113116                for (String b32 : breached) {
    114117                    writer.write(b32);
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/ui/TunnelConfig.java

    r6d2270a rfd6cb07  
    3131import net.i2p.util.ConcurrentHashSet;
    3232import net.i2p.util.PasswordManager;
     33import net.i2p.util.SecureFileOutputStream;
    3334
    3435/**
     
    634635                FileOutputStream fos = null;
    635636                try {
    636                     fos = new FileOutputStream(dslFile);
     637                    fos = new SecureFileOutputStream(dslFile);
    637638                    fos.write(_filterDefinition.getBytes());
    638639                } catch (IOException bad) {
Note: See TracChangeset for help on using the changeset viewer.