Opened 13 years ago
Closed 13 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: | Sensitive: | no |
Description (last modified by )
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 13 years ago by
Status: | new → accepted |
---|
comment:2 Changed 13 years ago by
comment:3 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:4 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
implemented in [c60598471c5f08b7d7e12e38d39f7a1d4c8ccf63]
Note: See
TracTickets for help on using
tickets.
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, …)
zz it's ad hoc now?
welterde hmm?
zz every client has their own code for it?
welterde ah.. yes
zz sam too I guess
welterde want to undertake it or should I?
zz not me
zz 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?
zz (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?
zz PrivKeyFile?, EepPrivDatFile? ?
welterde lets settle for PrivKeyFile?
zz I suppose the public keys are stored n there too? but PrivKeyFile? sounds good
zz 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 …"); ?
zz wont work on windows though
welterde yeah
zz anyway, if you could look into that it would be great