| Modifier and Type | Field and Description |
|---|---|
static String | INFO_FILENAMERouter info filename |
static String | KEYS_FILENAMEOld router keys filename |
static String | KEYS2_FILENAMERouter keys filename |
(package private) static String | PROP_ROUTER_ENCTYPEProperty for router encryption type |
(package private) static String | PROP_ROUTER_SIGTYPEProperty for router signature type |
| Constructor and Description |
|---|
CreateRouterInfoJob(RouterContext ctx,
Job next)Creates a new CreateRouterInfoJob. |
| Modifier and Type | Method and Description |
|---|---|
(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. |
static EncType | getEncTypeConfig(RouterContext ctx)The configured EncType to expect on read-in. |
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. |
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringpublic static final String INFO_FILENAME
public static final String KEYS_FILENAME
public static final String KEYS2_FILENAME
static final String PROP_ROUTER_ENCTYPE
static final String PROP_ROUTER_SIGTYPE
CreateRouterInfoJob(RouterContext ctx, Job next)
ctx - the router contextnext - the job to run after creationRouterInfo 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.
static long getCurrentPublishDate(RouterContext context)
context - the router contextpublic static EncType getEncTypeConfig(RouterContext ctx)
ctx - the router contextpublic String getName()
Jobpublic static SigType getSigTypeConfig(RouterContext ctx)
ctx - the router contextpublic void runJob()
Job