Class RoomThirdPartyInviteContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.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 Summary
Fields Modifier and Type Field Description private String
displayName
Required.private String
keyValidityUrl
Required.private String
publicKey
Required.private List<PublicKeys>
publicKeys
Keys with which the token may be signed.
-
Constructor Summary
Constructors Constructor Description RoomThirdPartyInviteContent()
-
Method Summary
Modifier and Type Method Description String
getDisplayName()
String
getKeyValidityUrl()
String
getPublicKey()
List<PublicKeys>
getPublicKeys()
void
setDisplayName(String displayName)
void
setKeyValidityUrl(String keyValidityUrl)
void
setPublicKey(String publicKey)
void
setPublicKeys(List<PublicKeys> publicKeys)
-
-
-
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.
-
-
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)
-
getPublicKeys
public List<PublicKeys> getPublicKeys()
-
setPublicKeys
public void setPublicKeys(List<PublicKeys> publicKeys)
-
-