java.lang.Object
net.i2p.client.impl.RequestLeaseSetMessageHandler.LeaseInfo
- Enclosing class:
RequestLeaseSetMessageHandler
Multiple encryption keys supported, as of 0.9.39, for LS2.
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classReverse order by enc type.Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<PrivateKey> The encryption private keys of the destination.The encryption public keys of the destination.private final SigningPrivateKeyThe signing private key of the destination.private final SigningPublicKeyThe signing public key of the destination.Constructor Summary
ConstructorsConstructorDescriptionLeaseInfo(List<PrivateKey> privKeys) Existing keys, LS2 only.LeaseInfo(List<PrivateKey> privKeys, Destination dest) Existing crypto keys, new signing key, LS1 only.LeaseInfo(List<PrivateKey> privKeys, SigningPrivateKey signingPrivKey) Existing keys, LS1 only.LeaseInfo(Destination dest, List<EncType> types, boolean isLS2) New keys.Method Summary
All MethodsModifier and TypeMethodDescriptionFirst private key; returns the first when multiple are present.The blinded private keys.First public key; returns the first when multiple are present.The blinded public keys.Signing private key; null for LS2.Signing public key; null for LS2.
Field Details
_pubKeys
_privKeys
The encryption private keys of the destination._signingPubKey
The signing public key of the destination._signingPrivKey
The signing private key of the destination.
Constructor Details
LeaseInfo
New keys.- Parameters:
dest- the destination these keys belong totypes- must be availableisLS2- true for LS2, which omits the signing keypair
LeaseInfo
Existing keys, LS1 only.- Parameters:
privKeys- all EncTypes must be availablesigningPrivKey- the signing private key
LeaseInfo
Existing crypto keys, new signing key, LS1 only.- Parameters:
privKeys- all EncTypes must be availabledest- the destination for key generation
LeaseInfo
Existing keys, LS2 only.- Parameters:
privKeys- all EncTypes must be available
Method Details
getPublicKey
First public key; returns the first when multiple are present.- Returns:
- the first one if more than one
getPrivateKey
First private key; returns the first when multiple are present.- Returns:
- the first one if more than one
getPublicKeys
getPrivateKeys
The blinded private keys.- Returns:
- the list of blinded private keys
getSigningPublicKey
getSigningPrivateKey
Signing private key; null for LS2.- Returns:
- null for LS2