Opened 13 years ago

Closed 13 years ago

#3 closed task (fixed)

Write DestinationFile

Reported by: welterde Owned by: welterde
Priority: major Milestone:
Component: api/data Version:
Keywords: data destination file persistence Cc:
Parent Tickets: Sensitive: no

Description (last modified by welterde)


public PrivateKeyFile(File file, I2PClient session);
public void createIfAbsent();
public Destination getDestination();
public I2PSession open();
public I2PSession open(Properties opts);

File: source:core/java/src/net/i2p/data/


Change History (4)

comment:1 Changed 13 years ago by welterde

Status: newaccepted

comment:2 Changed 13 years ago by zzz

zz welterde http://trac.i2p2.i2p/ticket/3 is for eepPriv.dat files?
welterde yup
welterde because i guess all apps need that
welterde (i2ptunnel does, streamr does, …)
z it's ad hoc now?
welterde hmm?
zz every client has their own code for it?
welterde ah.. yes
z sam too I guess
welterde want to undertake it or should I?
zz not me
z you targeting streamr only or going to port all the apps over?
welterde k… i'll do that then the next few days
welterde i'll try to find all parts that could use it :)
zz Are the contents precisely a Destination?
z (probably not since it has private keys?)
welterde the files only contain the private keys
welterde *key
zz so maybe a different name would be better, a Destination is a datastructure defined in
welterde hmm… what do you propose?
z PrivKeyFile?, EepPrivDatFile? ?
welterde lets settle for PrivKeyFile?
zz I suppose the public keys are stored n there too? but PrivKeyFile? sounds good
z if you can figure out how to make the files mode 400 that would be good, it's on my list of things to do
zz I know java doesn't have chmod but there must be some way
welterde Runtime.getRuntime().execute("chmod …"); ? ;)
z wont work on windows though
welterde yeah
zz anyway, if you could look into that it would be great

comment:3 Changed 13 years ago by welterde

Description: modified (diff)

comment:4 Changed 13 years ago by welterde

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.