Class RoomThirdPartyInviteContent

  • All Implemented Interfaces:
    EventContent

    public class RoomThirdPartyInviteContent
    extends Object
    implements EventContent
    Acts as an m.room.member invite event, where there isn't a target user_id to invite. This event contains a token and a public key whose private key must be used to sign the token. Any user who can present that signature may use this invitation to join the target room.
    • Field Detail

      • displayName

        private String displayName
        Required. A user-readable string which represents the user who has been invited. This should not contain the user's third party ID, as otherwise when the invite is accepted it would leak the association between the matrix ID and the third party ID.
      • keyValidityUrl

        private String keyValidityUrl
        Required. A URL which can be fetched, with querystring public_key=public_key, to validate whether the key has been revoked. The URL must return a JSON object containing a boolean property named 'valid'.
      • publicKey

        private String publicKey
        Required. A base64-encoded ed25519 key with which token must be signed (though a signature from any entry in public_keys is also sufficient). This exists for backwards compatibility.
      • publicKeys

        private List<PublicKeys> publicKeys
        Keys with which the token may be signed.
    • Constructor Detail

      • RoomThirdPartyInviteContent

        public RoomThirdPartyInviteContent()
    • Method Detail

      • getDisplayName

        public String getDisplayName()
      • setDisplayName

        public void setDisplayName​(String displayName)
      • getKeyValidityUrl

        public String getKeyValidityUrl()
      • setKeyValidityUrl

        public void setKeyValidityUrl​(String keyValidityUrl)
      • getPublicKey

        public String getPublicKey()
      • setPublicKey

        public void setPublicKey​(String publicKey)
      • setPublicKeys

        public void setPublicKeys​(List<PublicKeys> publicKeys)