Package net.i2p.router
Class LeaseSetKeys
java.lang.Object
net.i2p.router.LeaseSetKeys
public class LeaseSetKeys extends Object
Wrap up the keys given to the router when a destination connects to it.
Used by KeyManager, ClientMessageEventListener, GarlicMessageReceiver.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LeaseSetKeys(Destination dest, SigningPrivateKey revocationKey, List<PrivateKey> decryptionKeys)
Client with multiple keysLeaseSetKeys(Destination dest, SigningPrivateKey revocationKey, PrivateKey decryptionKey)
Client with a single key -
Method Summary
Modifier and Type Method 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, unusedSet<EncType>
getSupportedEncryption()
What types of encryption are supported?boolean
isSupported(EncType type)
Do we support this type of encryption?
-
Field Details
-
Constructor Details
-
LeaseSetKeys
Client with a single key- Parameters:
dest
- unusedrevocationKey
- unused, may be nulldecryptionKey
- non-null
-
LeaseSetKeys
public LeaseSetKeys(Destination dest, SigningPrivateKey revocationKey, List<PrivateKey> decryptionKeys)Client with multiple keys- Parameters:
dest
- unusedrevocationKey
- unused, may be nulldecryptionKeys
- non-null, non-empty- Since:
- 0.9.44
-
-
Method Details
-
getRevocationKey
Key with which a LeaseSet can be revoked (by republishing it with no Leases) Deprecated, unused -
getDecryptionKey
Decryption key which can open up garlic messages encrypted to the LeaseSet's public key. This is used because the general public does not know on what router the destination is connected and as such can't encrypt to that router's normal public key.- Returns:
- ElGamal key or null if the LS does not support ElGamal
-
getDecryptionKey
Decryption key which can open up garlic messages encrypted to the LeaseSet's public key. This is used because the general public does not know on what router the destination is connected and as such can't encrypt to that router's normal public key.- Returns:
- key of the specified type or null if the LS does not support that type
- Since:
- 0.9.44
-
isSupported
Do we support this type of encryption?- Since:
- 0.9.44
-
getSupportedEncryption
What types of encryption are supported?- Since:
- 0.9.44
-