java.lang.Object
net.i2p.client.impl.RequestLeaseSetMessageHandler.LeaseInfo
Enclosing class:
RequestLeaseSetMessageHandler

private static class RequestLeaseSetMessageHandler.LeaseInfoextends Object
Multiple encryption keys supported, as of 0.9.39, for LS2.
  • Field Details

    • _pubKeys

      private final List<PublicKey> _pubKeys
      The encryption public keys of the destination.
    • _privKeys

      private final List<PrivateKey> _privKeys
      The encryption private keys of the destination.
    • _signingPubKey

      private final SigningPublicKey _signingPubKey
      The signing public key of the destination.
    • _signingPrivKey

      private final SigningPrivateKey _signingPrivKey
      The signing private key of the destination.
  • Constructor Details

    • LeaseInfo

      public LeaseInfo(Destination dest, List<EncType> types, boolean isLS2)
      New keys.
      Parameters:
      dest - the destination these keys belong to
      types - must be available
      isLS2 - true for LS2, which omits the signing keypair
    • LeaseInfo

      public LeaseInfo(List<PrivateKey> privKeys, SigningPrivateKey signingPrivKey)
      Existing keys, LS1 only.
      Parameters:
      privKeys - all EncTypes must be available
      signingPrivKey - the signing private key
    • LeaseInfo

      public LeaseInfo(List<PrivateKey> privKeys, Destination dest)
      Existing crypto keys, new signing key, LS1 only.
      Parameters:
      privKeys - all EncTypes must be available
      dest - the destination for key generation
    • LeaseInfo

      public LeaseInfo(List<PrivateKey> privKeys)
      Existing keys, LS2 only.
      Parameters:
      privKeys - all EncTypes must be available
  • Method Details

    • getPublicKey

      public PublicKey getPublicKey()
      First public key; returns the first when multiple are present.
      Returns:
      the first one if more than one
    • getPrivateKey

      public PrivateKey getPrivateKey()
      First private key; returns the first when multiple are present.
      Returns:
      the first one if more than one
    • getPublicKeys

      public List<PublicKey> getPublicKeys()
      The blinded public keys.
      Returns:
      the list of blinded public keys
    • getPrivateKeys

      public List<PrivateKey> getPrivateKeys()
      The blinded private keys.
      Returns:
      the list of blinded private keys
    • getSigningPublicKey

      public SigningPublicKey getSigningPublicKey()
      Signing public key; null for LS2.
      Returns:
      null for LS2
    • getSigningPrivateKey

      public SigningPrivateKey getSigningPrivateKey()
      Signing private key; null for LS2.
      Returns:
      null for LS2