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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      GroupSendFullToken toFullToken(Instant expiration) Converts this token to a "full token", which can be sent to the chat server as authentication.
      • Methods inherited from class org.signal.libsignal.zkgroup.internal.ByteArray

        constantTimeEqual, equals, getInternalContentsForJNI, hashCode, serialize
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.

        expiration must be the same expiration that was in the original , or the resulting token will fail to verify.