|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.KeyManager
public class KeyManager
Maintain all of the key pairs for the router. Router keys are written to files in a backup directory. LeaseSet keys are not written to files.
Field Summary | |
---|---|
static String |
DEFAULT_KEYDIR
|
static String |
KEYFILE_PRIVATE_ENC
|
static String |
KEYFILE_PRIVATE_SIGNING
|
static String |
KEYFILE_PUBLIC_ENC
|
static String |
KEYFILE_PUBLIC_SIGNING
|
static String |
PROP_KEYDIR
|
Constructor Summary | |
---|---|
KeyManager(RouterContext context)
|
Method Summary | |
---|---|
LeaseSetKeys |
getKeys(Destination dest)
client |
LeaseSetKeys |
getKeys(Hash dest)
client |
PrivateKey |
getPrivateKey()
Router key |
PublicKey |
getPublicKey()
Router key |
SigningPrivateKey |
getSigningPrivateKey()
Router key |
SigningPublicKey |
getSigningPublicKey()
Router key |
void |
registerKeys(Destination dest,
SigningPrivateKey leaseRevocationPrivateKey,
PrivateKey endpointDecryptionKey)
client |
void |
setKeys(PublicKey key1,
PrivateKey key2,
SigningPublicKey key3,
SigningPrivateKey key4)
Configure the router's keys. |
void |
startup()
Deprecated. we never read keys in anymore |
LeaseSetKeys |
unregisterKeys(Destination dest)
client |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_KEYDIR
public static final String DEFAULT_KEYDIR
public static final String KEYFILE_PRIVATE_ENC
public static final String KEYFILE_PUBLIC_ENC
public static final String KEYFILE_PRIVATE_SIGNING
public static final String KEYFILE_PUBLIC_SIGNING
Constructor Detail |
---|
public KeyManager(RouterContext context)
Method Detail |
---|
public void startup()
public void setKeys(PublicKey key1, PrivateKey key2, SigningPublicKey key3, SigningPrivateKey key4)
public PrivateKey getPrivateKey()
public PublicKey getPublicKey()
public SigningPrivateKey getSigningPrivateKey()
public SigningPublicKey getSigningPublicKey()
public void registerKeys(Destination dest, SigningPrivateKey leaseRevocationPrivateKey, PrivateKey endpointDecryptionKey)
public LeaseSetKeys unregisterKeys(Destination dest)
public LeaseSetKeys getKeys(Destination dest)
public LeaseSetKeys getKeys(Hash dest)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |