public class LeaseSetKeys extends Object
Modifier and Type | Field and Description |
---|---|
static Set<EncType> |
SET_ELG
Unmodifiable, ElGamal only
|
Constructor and Description |
---|
LeaseSetKeys(Destination dest,
SigningPrivateKey revocationKey,
List<PrivateKey> decryptionKeys)
Client with multiple keys
|
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.
|
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, PrivateKey decryptionKey)
dest
- unusedrevocationKey
- unused, may be nulldecryptionKey
- non-nullpublic LeaseSetKeys(Destination dest, SigningPrivateKey revocationKey, List<PrivateKey> decryptionKeys)
dest
- unusedrevocationKey
- unused, may be nulldecryptionKeys
- non-null, non-emptypublic SigningPrivateKey getRevocationKey()
public PrivateKey getDecryptionKey()
public PrivateKey getDecryptionKey(EncType type)
public boolean isSupported(EncType type)