Opened 11 years ago

Closed 11 years ago

#3 closed task (fixed)

Write DestinationFile

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

Description (last modified by welterde)

API:

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/PrivateKeyFile.java

Subtickets

Change History (4)

comment:1 Changed 11 years ago by welterde

  • Status changed from new to accepted

comment:2 Changed 11 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
z it's ad hoc now?
welterde hmm?
zz every client has their own code for it?
welterde ah.. yes
z
z sam too I guess
welterde want to undertake it or should I?
zz not me
z
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
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 Destination.java
welterde hmm... what do you propose?
z
z PrivKeyFile?, EepPrivDatFile? ?
welterde lets settle for PrivKeyFile?
zz I suppose the public keys are stored n there too? but PrivKeyFile? sounds good
z
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
z wont work on windows though
welterde yeah
zz anyway, if you could look into that it would be great

comment:3 Changed 11 years ago by welterde

  • Description modified (diff)

comment:4 Changed 11 years ago by welterde

  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets.