public class CloveSet extends Object
| Constructor and Description |
|---|
CloveSet(GarlicClove[] cloves,
Certificate cert,
long msgId,
long expiration)Create a new CloveSet. |
| Modifier and Type | Method and Description |
|---|---|
Certificate | getCertificate()Get the certificate. |
GarlicClove | getClove(int index)Get the clove at the specified index. |
int | getCloveCount()Get the number of cloves. |
long | getExpiration()Get the expiration. |
long | getMessageId()Get the message ID. |
String | toString() |
public CloveSet(GarlicClove[] cloves, Certificate cert, long msgId, long expiration)
cloves - non-null, all entries non-nullcert - non-nullmsgId - the message IDexpiration - the expiration timepublic Certificate getCertificate()
public GarlicClove getClove(int index)
index - the indexArrayIndexOutOfBoundsException - if the index is out of rangepublic int getCloveCount()
public long getExpiration()
public long getMessageId()