public class KeyManager
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static java.lang.String |
DEFAULT_KEYDIR |
|
static java.lang.String |
KEYFILE_PRIVATE_ENC |
|
static java.lang.String |
KEYFILE_PRIVATE_SIGNING |
|
static java.lang.String |
KEYFILE_PUBLIC_ENC |
|
static java.lang.String |
KEYFILE_PUBLIC_SIGNING |
|
static java.lang.String |
PROP_KEYDIR |
コンストラクタ | 説明 |
---|---|
KeyManager(RouterContext context) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
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() |
推奨されていません。
we never read keys in anymore
|
LeaseSetKeys |
unregisterKeys(Destination dest) |
client
|
public static final java.lang.String PROP_KEYDIR
public static final java.lang.String DEFAULT_KEYDIR
public static final java.lang.String KEYFILE_PRIVATE_ENC
public static final java.lang.String KEYFILE_PUBLIC_ENC
public static final java.lang.String KEYFILE_PRIVATE_SIGNING
public static final java.lang.String KEYFILE_PUBLIC_SIGNING
public KeyManager(RouterContext context)
@Deprecated 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)