net.i2p.router.crypto.ratchet

## Class RatchetEntry

- java.lang.Object
- - net.i2p.router.crypto.ratchet.RatchetEntry

-     class RatchetEntry
      extends Object

  Container for outbound ratchet encryption data including tag, key, nonce, and optional next session keys for message preparation The object returned from SKM.consumeNextAvailableTag() to the engine encrypt.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `List<Integer>` | `acksToSend`
    `SessionKeyAndNonce` | `key`
    `int` | `keyID`
    `NextSessionKey` | `nextForwardKey`
    `NextSessionKey` | `nextReverseKey`
    `int` | `pn`
    `RatchetSessionTag` | `tag`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RatchetEntry(RatchetSessionTag tag, SessionKeyAndNonce key, int keyID, int pn)` outbound - calculated key
    `RatchetEntry(RatchetSessionTag tag, SessionKeyAndNonce key, int keyID, int pn, NextSessionKey nextFwdKey, NextSessionKey nextRevKey, List<Integer> acksToSend)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### acksToSend

          public final List<Integer> acksToSend

    - #### key

          public final SessionKeyAndNonce key

    - #### keyID

          public final int keyID

    - #### nextForwardKey

          public final NextSessionKey nextForwardKey

    - #### nextReverseKey

          public final NextSessionKey nextReverseKey

    - #### pn

          public final int pn

    - #### tag

          public final RatchetSessionTag tag

  - ### Constructor Detail

    - #### RatchetEntry

          public RatchetEntry(RatchetSessionTag tag,
                              SessionKeyAndNonce key,
                              int keyID,
                              int pn)

      outbound - calculated key

    - #### RatchetEntry

          public RatchetEntry(RatchetSessionTag tag,
                              SessionKeyAndNonce key,
                              int keyID,
                              int pn,
                              NextSessionKey nextFwdKey,
                              NextSessionKey nextRevKey,
                              List<Integer> acksToSend)

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`