Class KeyVerificationAcceptContent

  • All Implemented Interfaces:
    EventContent

    public class KeyVerificationAcceptContent
    extends Object
    implements EventContent
    Accepts a previously sent m.key.verification.start message. Typically sent as a to-device event.
    • Field Detail

      • transactionId

        private String transactionId
        Required. An opaque identifier for the verification process. Must be the same as the one used for the m.key.verification.start message.
      • method

        private String method
        Required. The verification method to use. Must be 'm.sas.v1'.
      • keyAgreementProtocol

        private String keyAgreementProtocol
        Required. The key agreement protocol the device is choosing to use, out of the options in the m.key.verification.start message.
      • hash

        private String hash
        Required. The hash method the device is choosing to use, out of the options in the m.key.verification.start message.
      • messageAuthenticationCode

        private String messageAuthenticationCode
        Required. The message authentication code the device is choosing to use, out of the options in the m.key.verification.start message.
      • shortAuthenticationString

        private String shortAuthenticationString
        Required. The SAS methods both devices involved in the verification process understand. Must be a subset of the options in the m.key.verification.start message. One of: ["decimal", "emoji"].
      • commitment

        private String commitment
        Required. The hash (encoded as unpadded base64) of the concatenation of the device's ephemeral public key (encoded as unpadded base64) and the canonical JSON representation of the m.key.verification.start message.
    • Constructor Detail

      • KeyVerificationAcceptContent

        public KeyVerificationAcceptContent()
    • Method Detail

      • getTransactionId

        public String getTransactionId()
      • setTransactionId

        public void setTransactionId​(String transactionId)
      • getMethod

        public String getMethod()
      • setMethod

        public void setMethod​(String method)
      • getKeyAgreementProtocol

        public String getKeyAgreementProtocol()
      • setKeyAgreementProtocol

        public void setKeyAgreementProtocol​(String keyAgreementProtocol)
      • getHash

        public String getHash()
      • setHash

        public void setHash​(String hash)
      • getMessageAuthenticationCode

        public String getMessageAuthenticationCode()
      • setMessageAuthenticationCode

        public void setMessageAuthenticationCode​(String messageAuthenticationCode)
      • getShortAuthenticationString

        public String getShortAuthenticationString()
      • setShortAuthenticationString

        public void setShortAuthenticationString​(String shortAuthenticationString)
      • getCommitment

        public String getCommitment()
      • setCommitment

        public void setCommitment​(String commitment)