public class LeaseSetKeys extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<net.i2p.crypto.EncType> |
SET_BOTH
Unmodifiable, ElGamal and ECIES-X25519.
|
static Set<net.i2p.crypto.EncType> |
SET_EC
Unmodifiable, ECIES-X25519 only
|
static Set<net.i2p.crypto.EncType> |
SET_ELG
Unmodifiable, ElGamal only
|
| Constructor and Description |
|---|
LeaseSetKeys(net.i2p.data.Destination dest,
net.i2p.data.SigningPrivateKey revocationKey,
List<net.i2p.data.PrivateKey> decryptionKeys)
Client with multiple keys
|
LeaseSetKeys(net.i2p.data.Destination dest,
net.i2p.data.SigningPrivateKey revocationKey,
net.i2p.data.PrivateKey decryptionKey)
Client with a single key
|
| Modifier and Type | Method and Description |
|---|---|
net.i2p.data.PrivateKey |
getDecryptionKey()
Decryption key which can open up garlic messages encrypted to the
LeaseSet's public key.
|
net.i2p.data.PrivateKey |
getDecryptionKey(net.i2p.crypto.EncType type)
Decryption key which can open up garlic messages encrypted to the
LeaseSet's public key.
|
net.i2p.data.SigningPrivateKey |
getRevocationKey()
Key with which a LeaseSet can be revoked (by republishing it with no Leases)
Deprecated, unused
|
Set<net.i2p.crypto.EncType> |
getSupportedEncryption()
What types of encryption are supported?
|
boolean |
isSupported(net.i2p.crypto.EncType type)
Do we support this type of encryption?
|
public static final Set<net.i2p.crypto.EncType> SET_ELG
public static final Set<net.i2p.crypto.EncType> SET_EC
public static final Set<net.i2p.crypto.EncType> SET_BOTH
public LeaseSetKeys(net.i2p.data.Destination dest,
net.i2p.data.SigningPrivateKey revocationKey,
net.i2p.data.PrivateKey decryptionKey)
dest - unusedrevocationKey - unused, may be nulldecryptionKey - non-nullpublic LeaseSetKeys(net.i2p.data.Destination dest,
net.i2p.data.SigningPrivateKey revocationKey,
List<net.i2p.data.PrivateKey> decryptionKeys)
dest - unusedrevocationKey - unused, may be nulldecryptionKeys - non-null, non-emptypublic net.i2p.data.SigningPrivateKey getRevocationKey()
public net.i2p.data.PrivateKey getDecryptionKey()
public net.i2p.data.PrivateKey getDecryptionKey(net.i2p.crypto.EncType type)
public boolean isSupported(net.i2p.crypto.EncType type)
public Set<net.i2p.crypto.EncType> getSupportedEncryption()