net.i2p.router.message

## Class CloveSet

- java.lang.Object
- - net.i2p.router.message.CloveSet

-     public class CloveSet
      extends Object

  Wrap up the data contained in a GarlicMessage after being decrypted

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CloveSet(GarlicClove[] cloves, Certificate cert, long msgId, long expiration)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Certificate` | `getCertificate()`
    `GarlicClove` | `getClove(int index)`
    `int` | `getCloveCount()`
    `long` | `getExpiration()`
    `long` | `getMessageId()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### CloveSet

          public CloveSet(GarlicClove[] cloves,
                          Certificate cert,
                          long msgId,
                          long expiration)

      Parameters:
        `cloves` - non-null, all entries non-null
        `cert` - non-null

  - ### Method Detail

    - #### getCertificate

          public Certificate getCertificate()

    - #### getClove

          public GarlicClove getClove(int index)

      Throws:
        `ArrayIndexOutOfBoundsException`

    - #### getCloveCount

          public int getCloveCount()

    - #### getExpiration

          public long getExpiration()

    - #### getMessageId

          public long getMessageId()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`