Class KeyVerificationStartContent
- java.lang.Object
-
- io.github.ma1uta.matrix.event.content.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 Summary
Fields Modifier and Type Field Description private StringfromDeviceRequired.private List<String>hashesRequired.private List<String>keyAgreementProtocolRequired.private List<String>messageAuthenticationCodesRequired.private StringmethodRequired.private StringnextMethodOptional method to use to verify the other user's key with.private List<String>shortAuthenticationStringRequired.private StringtransactionIdRequired.
-
Constructor Summary
Constructors Constructor Description KeyVerificationStartContent()
-
Method Summary
Modifier and Type Method Description StringgetFromDevice()List<String>getHashes()List<String>getKeyAgreementProtocol()List<String>getMessageAuthenticationCodes()StringgetMethod()StringgetNextMethod()List<String>getShortAuthenticationString()StringgetTransactionId()voidsetFromDevice(String fromDevice)voidsetHashes(List<String> hashes)voidsetKeyAgreementProtocol(List<String> keyAgreementProtocol)voidsetMessageAuthenticationCodes(List<String> messageAuthenticationCodes)voidsetMethod(String method)voidsetNextMethod(String nextMethod)voidsetShortAuthenticationString(List<String> shortAuthenticationString)voidsetTransactionId(String transactionId)
-
-
-
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.
-
-
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)
-
setMessageAuthenticationCodes
public void setMessageAuthenticationCodes(List<String> messageAuthenticationCodes)
-
-