|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.JobImpl
net.i2p.router.startup.CreateRouterInfoJob
public class CreateRouterInfoJob
Warning - misnamed. This creates a new RouterIdentity, i.e. new router keys and hash. It then builds a new RouterInfo and saves all the keys. This is generally run only once, on a new install.
Field Summary | |
---|---|
static String |
INFO_FILENAME
|
static String |
KEYS_FILENAME
|
static String |
KEYS2_FILENAME
|
(package private) static String |
PROP_ROUTER_SIGTYPE
|
Constructor Summary | |
---|---|
CreateRouterInfoJob(RouterContext ctx,
Job next)
|
Method Summary | |
---|---|
(package private) static Certificate |
createCertificate(RouterContext ctx,
SigningPublicKey spk)
Only called at startup via LoadRouterInfoJob and RebuildRouterInfoJob. |
(package private) RouterInfo |
createRouterInfo()
Writes 6 files: router.info (standard RI format), router.keys.dat, and 4 individual key files under keyBackup/ router.keys.dat file format: This is the same "eepPriv.dat" format used by the client code, as documented in PrivateKeyFile. |
(package private) static long |
getCurrentPublishDate(RouterContext context)
We probably don't want to expose the exact time at which a router published its info. |
String |
getName()
Descriptive name of the task |
static SigType |
getSigTypeConfig(RouterContext ctx)
The configured SigType to expect on read-in |
void |
runJob()
Actually perform the task. |
Methods inherited from class net.i2p.router.JobImpl |
---|
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String INFO_FILENAME
public static final String KEYS_FILENAME
public static final String KEYS2_FILENAME
static final String PROP_ROUTER_SIGTYPE
Constructor Detail |
---|
CreateRouterInfoJob(RouterContext ctx, Job next)
Method Detail |
---|
public String getName()
Job
public void runJob()
Job
RouterInfo createRouterInfo()
- Private key (256 bytes) - Signing Private key (20 bytes) - Public key (256 bytes) - Signing Public key (128 bytes) Total 660 bytesCaller must hold Router.routerInfoFileLock.
public static SigType getSigTypeConfig(RouterContext ctx)
static long getCurrentPublishDate(RouterContext context)
static Certificate createCertificate(RouterContext ctx, SigningPublicKey spk)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |