Class KeyVerificationAcceptContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.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 Summary
Fields Modifier and Type Field Description private String
commitment
Required.private String
hash
Required.private String
keyAgreementProtocol
Required.private String
messageAuthenticationCode
Required.private String
method
Required.private String
shortAuthenticationString
Required.private String
transactionId
Required.
-
Constructor Summary
Constructors Constructor Description KeyVerificationAcceptContent()
-
Method Summary
Modifier and Type Method Description String
getCommitment()
String
getHash()
String
getKeyAgreementProtocol()
String
getMessageAuthenticationCode()
String
getMethod()
String
getShortAuthenticationString()
String
getTransactionId()
void
setCommitment(String commitment)
void
setHash(String hash)
void
setKeyAgreementProtocol(String keyAgreementProtocol)
void
setMessageAuthenticationCode(String messageAuthenticationCode)
void
setMethod(String method)
void
setShortAuthenticationString(String shortAuthenticationString)
void
setTransactionId(String transactionId)
-
-
-
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.
-
-
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)
-
-