public class LeaseSetKeys extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<EncType> |
SET_BOTH
Unmodifiable, ElGamal and ECIES-X25519.
|
static Set<EncType> |
SET_EC
Unmodifiable, ECIES-X25519 only
|
static Set<EncType> |
SET_EC_PQ_ALL
Unmodifiable, ECIES-X25519 and PQ only
|
static Set<EncType> |
SET_EC_PQ1
Unmodifiable, ECIES-X25519 and PQ only
|
static Set<EncType> |
SET_EC_PQ2
Unmodifiable, ECIES-X25519 and PQ only
|
static Set<EncType> |
SET_EC_PQ3
Unmodifiable, ECIES-X25519 and PQ only
|
static Set<EncType> |
SET_ELG
Unmodifiable, ElGamal only
|
static Set<EncType> |
SET_PQ1
Unmodifiable, PQ only
|
static Set<EncType> |
SET_PQ2
Unmodifiable, PQ only
|
static Set<EncType> |
SET_PQ3
Unmodifiable, PQ only
|
| Constructor and Description |
|---|
LeaseSetKeys(Destination dest,
SigningPrivateKey revocationKey,
List<PrivateKey> decryptionKeys)
Client with multiple keys
The ONLY valid combinations are X25519 + ElG or X25519 + (MLKEM512 OR MLKEM768 OR MLKEM1024).
|
LeaseSetKeys(Destination dest,
SigningPrivateKey revocationKey,
PrivateKey decryptionKey)
Client with a single key
|
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getDecryptionKey()
Decryption key which can open up garlic messages encrypted to the
LeaseSet's public key.
|
PrivateKey |
getDecryptionKey(EncType type)
Decryption key which can open up garlic messages encrypted to the
LeaseSet's public key.
|
PrivateKey |
getPQDecryptionKey() |
SigningPrivateKey |
getRevocationKey()
Key with which a LeaseSet can be revoked (by republishing it with no Leases)
Deprecated, unused
|
Set<EncType> |
getSupportedEncryption()
What types of encryption are supported?
|
boolean |
isSupported(EncType type)
Do we support this type of encryption?
|
public LeaseSetKeys(Destination dest, SigningPrivateKey revocationKey, List<PrivateKey> decryptionKeys)
dest - unusedrevocationKey - unused, may be nulldecryptionKeys - non-null, non-emptyIllegalArgumentExceptionpublic LeaseSetKeys(Destination dest, SigningPrivateKey revocationKey, PrivateKey decryptionKey)
dest - unusedrevocationKey - unused, may be nulldecryptionKey - non-nullpublic PrivateKey getDecryptionKey()
public PrivateKey getDecryptionKey(EncType type)
public PrivateKey getPQDecryptionKey()
public SigningPrivateKey getRevocationKey()
public Set<EncType> getSupportedEncryption()
public boolean isSupported(EncType type)