public class LeaseSetKeys extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<EncType> | SET_BOTHUnmodifiable, ElGamal and ECIES-X25519. |
static Set<EncType> | SET_ECUnmodifiable, ECIES-X25519 only |
static Set<EncType> | SET_EC_PQ_ALLUnmodifiable, ECIES-X25519 and PQ only |
static Set<EncType> | SET_EC_PQ1Unmodifiable, ECIES-X25519 and PQ only |
static Set<EncType> | SET_EC_PQ2Unmodifiable, ECIES-X25519 and PQ only |
static Set<EncType> | SET_EC_PQ3Unmodifiable, ECIES-X25519 and PQ only |
static Set<EncType> | SET_ELGUnmodifiable, ElGamal only |
static Set<EncType> | SET_PQ1Unmodifiable, PQ only |
static Set<EncType> | SET_PQ2Unmodifiable, PQ only |
static Set<EncType> | SET_PQ3Unmodifiable, 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)