Class KeyVerificationStartContent

  • All Implemented Interfaces:
    EventContent

    public class KeyVerificationStartContent
    extends Object
    implements EventContent
    Begins a key verification process. Typically sent as a to-device event.
    • Field Detail

      • fromDevice

        private String fromDevice
        Required. The device ID which is initiating the process.
      • transactionId

        private String transactionId
        Required. An opaque identifier for the verification process. Must be unique with respect to the devices involved. Must be the same as the transaction_id given in the m.key.verification.request if this process is originating from a request.
      • method

        private String method
        Required. The verification method to use.
      • nextMethod

        private String nextMethod
        Optional method to use to verify the other user's key with. Applicable when the method chosen only verifies one user's key.
      • keyAgreementProtocol

        private List<String> keyAgreementProtocol
        Required. The key agreement protocols the sending device understands. Must include at least curve25519.
      • hashes

        private List<String> hashes
        Required. The hash methods the sending device understands. Must include at least sha256.
      • messageAuthenticationCodes

        private List<String> messageAuthenticationCodes
        Required. The message authentication codes that the sending device understands. Must include at least hkdf-hmac-sha256.
      • shortAuthenticationString

        private List<String> shortAuthenticationString
        Required. The SAS methods the sending device (and the sending device's user) understands. Must include at least decimal. Optionally can include emoji. One of: ["decimal", "emoji"]
    • Constructor Detail

      • KeyVerificationStartContent

        public KeyVerificationStartContent()
    • Method Detail

      • getFromDevice

        public String getFromDevice()
      • setFromDevice

        public void setFromDevice​(String fromDevice)
      • getTransactionId

        public String getTransactionId()
      • setTransactionId

        public void setTransactionId​(String transactionId)
      • getMethod

        public String getMethod()
      • setMethod

        public void setMethod​(String method)
      • getNextMethod

        public String getNextMethod()
      • setNextMethod

        public void setNextMethod​(String nextMethod)
      • getKeyAgreementProtocol

        public List<String> getKeyAgreementProtocol()
      • setKeyAgreementProtocol

        public void setKeyAgreementProtocol​(List<String> keyAgreementProtocol)
      • setHashes

        public void setHashes​(List<String> hashes)
      • getMessageAuthenticationCodes

        public List<String> getMessageAuthenticationCodes()
      • setMessageAuthenticationCodes

        public void setMessageAuthenticationCodes​(List<String> messageAuthenticationCodes)
      • getShortAuthenticationString

        public List<String> getShortAuthenticationString()
      • setShortAuthenticationString

        public void setShortAuthenticationString​(List<String> shortAuthenticationString)