|
||||||||||
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 |
PROP_KEYDIR
|
Constructor Summary | |
---|---|
KeyManager(RouterContext context)
|
Method Summary | |
---|---|
LeaseSetKeys |
getKeys(Destination dest)
|
LeaseSetKeys |
getKeys(Hash dest)
|
PrivateKey |
getPrivateKey()
|
PublicKey |
getPublicKey()
|
SigningPrivateKey |
getSigningPrivateKey()
|
SigningPublicKey |
getSigningPublicKey()
|
void |
registerKeys(Destination dest,
SigningPrivateKey leaseRevocationPrivateKey,
PrivateKey endpointDecryptionKey)
|
void |
setPrivateKey(PrivateKey key)
Configure the router's private key |
void |
setPublicKey(PublicKey key)
Configure the router's public key |
void |
setSigningPrivateKey(SigningPrivateKey key)
Configure the router's signing private key |
void |
setSigningPublicKey(SigningPublicKey key)
Configure the router's signing public key |
void |
startup()
|
LeaseSetKeys |
unregisterKeys(Destination dest)
|
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
Constructor Detail |
---|
public KeyManager(RouterContext context)
Method Detail |
---|
public void startup()
public void setPrivateKey(PrivateKey key)
public PrivateKey getPrivateKey()
public void setPublicKey(PublicKey key)
public PublicKey getPublicKey()
public void setSigningPrivateKey(SigningPrivateKey key)
public SigningPrivateKey getSigningPrivateKey()
public void setSigningPublicKey(SigningPublicKey key)
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 |