Class SetupResponse


  • public final class SetupResponse
    extends java.lang.Object
    • Method Detail

      • getIdentityToken

        public java.lang.String getIdentityToken()
        Returns:
        Token used to authenticate the identity. Should be stored somewhere permanent. Pass this to rivet.api.identity#Setup$existing_identity_token next time rivet.api.identity#Setup is called. Token has a 90 day TTL. This means that if rivet.api.identity#Setup is not called again within 90 days, the token will no longer be valid. If this happens, the user can recover their account through the linking process (see rivet.api.identity#PrepareGameLink). This token should be stored locally and never sent to a server or another device. If this token is compromised, anyone with access to this token has control of the identity.
      • getIdentityTokenExpireTs

        public java.time.OffsetDateTime getIdentityTokenExpireTs()
        Returns:
        If this token is comprimised, anyone with access to this token has control of the identity.
      • getIdentity

        public Profile getIdentity()
        Returns:
        Information about the identity that was just authenticated.
      • getGameId

        public java.util.UUID getGameId()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object