Class KeyResponse
- java.lang.Object
-
- io.github.ma1uta.matrix.server.model.key.KeyResponse
-
public class KeyResponse extends Object
JSON body response for key api.
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,OldVerifyKey>
oldVerifyKeys
The public keys that the server used to use and when it stopped using them.private String
serverName
DNS name of the homeserver.private Map<String,Map<String,String>>
signatures
Digital signatures for this object signed using the verify_keys.private Long
validUntilTs
POSIX timestamp when the list of valid keys should be refreshed.private Map<String,VerifyKey>
verifyKeys
Public keys of the homeserver for verifying digital signatures.
-
Constructor Summary
Constructors Constructor Description KeyResponse()
-
Method Summary
Modifier and Type Method Description Map<String,OldVerifyKey>
getOldVerifyKeys()
String
getServerName()
Map<String,Map<String,String>>
getSignatures()
Long
getValidUntilTs()
Map<String,VerifyKey>
getVerifyKeys()
void
setOldVerifyKeys(Map<String,OldVerifyKey> oldVerifyKeys)
void
setServerName(String serverName)
void
setSignatures(Map<String,Map<String,String>> signatures)
void
setValidUntilTs(Long validUntilTs)
void
setVerifyKeys(Map<String,VerifyKey> verifyKeys)
-
-
-
Field Detail
-
oldVerifyKeys
private Map<String,OldVerifyKey> oldVerifyKeys
The public keys that the server used to use and when it stopped using them.
-
serverName
private String serverName
DNS name of the homeserver.
-
signatures
private Map<String,Map<String,String>> signatures
Digital signatures for this object signed using the verify_keys.
-
validUntilTs
private Long validUntilTs
POSIX timestamp when the list of valid keys should be refreshed.
-
-
Method Detail
-
getOldVerifyKeys
public Map<String,OldVerifyKey> getOldVerifyKeys()
-
setOldVerifyKeys
public void setOldVerifyKeys(Map<String,OldVerifyKey> oldVerifyKeys)
-
getServerName
public String getServerName()
-
setServerName
public void setServerName(String serverName)
-
getValidUntilTs
public Long getValidUntilTs()
-
setValidUntilTs
public void setValidUntilTs(Long validUntilTs)
-
-