net.i2p.router
Class KeyManager
java.lang.Object
net.i2p.router.KeyManager
public class KeyManager
- extends Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_KEYDIR
public static final String PROP_KEYDIR
- See Also:
- Constant Field Values
DEFAULT_KEYDIR
public static final String DEFAULT_KEYDIR
- See Also:
- Constant Field Values
KeyManager
public KeyManager(RouterContext context)
startup
public void startup()
setKeys
public void setKeys(PublicKey key1,
PrivateKey key2,
SigningPublicKey key3,
SigningPrivateKey key4)
- Configure the router's keys.
- Since:
- 0.9.4 replace individual setters
getPrivateKey
public PrivateKey getPrivateKey()
getPublicKey
public PublicKey getPublicKey()
getSigningPrivateKey
public SigningPrivateKey getSigningPrivateKey()
getSigningPublicKey
public SigningPublicKey getSigningPublicKey()
registerKeys
public void registerKeys(Destination dest,
SigningPrivateKey leaseRevocationPrivateKey,
PrivateKey endpointDecryptionKey)
unregisterKeys
public LeaseSetKeys unregisterKeys(Destination dest)
getKeys
public LeaseSetKeys getKeys(Destination dest)
getKeys
public LeaseSetKeys getKeys(Hash dest)