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 String
fromDevice
Required.private List<String>
hashes
Required.private List<String>
keyAgreementProtocol
Required.private List<String>
messageAuthenticationCodes
Required.private String
method
Required.private String
nextMethod
Optional method to use to verify the other user's key with.private List<String>
shortAuthenticationString
Required.private String
transactionId
Required.
-
Constructor Summary
Constructors Constructor Description KeyVerificationStartContent()
-
Method Summary
Modifier and Type Method Description String
getFromDevice()
List<String>
getHashes()
List<String>
getKeyAgreementProtocol()
List<String>
getMessageAuthenticationCodes()
String
getMethod()
String
getNextMethod()
List<String>
getShortAuthenticationString()
String
getTransactionId()
void
setFromDevice(String fromDevice)
void
setHashes(List<String> hashes)
void
setKeyAgreementProtocol(List<String> keyAgreementProtocol)
void
setMessageAuthenticationCodes(List<String> messageAuthenticationCodes)
void
setMethod(String method)
void
setNextMethod(String nextMethod)
void
setShortAuthenticationString(List<String> shortAuthenticationString)
void
setTransactionId(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)
-
-