Class GroupSendFullToken
-
- All Implemented Interfaces:
public final class GroupSendFullToken extends ByteArray
A token representing a particular GroupSendEndorsement, along with the endorsement's expiration.
Generated by toFullToken, and verified by the chat server.
-
-
Field Summary
Fields Modifier and Type Field Description public final static ByteArray.UncheckedAndUnclonedUNCHECKED_AND_UNCLONED
-
Constructor Summary
Constructors Constructor Description GroupSendFullToken(Array<byte> contents)
-
Method Summary
Modifier and Type Method Description InstantgetExpiration()Gets the expiration embedded in the token. voidverify(Collection<ServiceId> userIds, GroupSendDerivedKeyPair keyPair)Verifies that this token was generated from an endorsement of userIdsbykeyPair.voidverify(Collection<ServiceId> userIds, Instant now, GroupSendDerivedKeyPair keyPair)Verifies that this token was generated from an endorsement of userIdsbykeyPair, assuming a specific current time.-
-
Constructor Detail
-
GroupSendFullToken
GroupSendFullToken(Array<byte> contents)
-
-
Method Detail
-
getExpiration
Instant getExpiration()
Gets the expiration embedded in the token.
-
verify
void verify(Collection<ServiceId> userIds, GroupSendDerivedKeyPair keyPair)
Verifies that this token was generated from an endorsement of
userIdsbykeyPair.The correct
keyPairmust be selected based on getExpiration.
-
verify
void verify(Collection<ServiceId> userIds, Instant now, GroupSendDerivedKeyPair keyPair)
Verifies that this token was generated from an endorsement of
userIdsbykeyPair, assuming a specific current time.This should only be used for testing purposes.
-
-
-
-