Class GroupSendEndorsement.Token
-
- All Implemented Interfaces:
public class GroupSendEndorsement.Token extends ByteArray
A minimal cacheable representation of an endorsement.
This contains the minimal information needed to represent this specific endorsement; it must be converted to a GroupSendFullToken before sending to the chat server. (It is valid to do this immediately; it just uses up extra space.)
Generated by toToken.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ByteArray.UncheckedAndUnclonedUNCHECKED_AND_UNCLONED
-
Constructor Summary
Constructors Constructor Description GroupSendEndorsement.Token(Array<byte> contents)
-
Method Summary
Modifier and Type Method Description GroupSendFullTokentoFullToken(Instant expiration)Converts this token to a "full token", which can be sent to the chat server as authentication. -
-
Constructor Detail
-
GroupSendEndorsement.Token
GroupSendEndorsement.Token(Array<byte> contents)
-
-
Method Detail
-
toFullToken
GroupSendFullToken toFullToken(Instant expiration)
Converts this token to a "full token", which can be sent to the chat server as authentication.
expirationmust be the same expiration that was in the original , or the resulting token will fail to verify.
-
-
-
-