Better explain what the ValidityPeriod is

This commit is contained in:
Mark Haines 2017-05-19 14:27:45 +01:00
parent 0f952c7ba3
commit cd8d9c49a3

View file

@ -31,6 +31,9 @@ type FederationAPI struct {
KeyID gomatrixserverlib.KeyID KeyID gomatrixserverlib.KeyID
// A list of SHA256 TLS fingerprints for this server. // A list of SHA256 TLS fingerprints for this server.
TLSFingerPrints []gomatrixserverlib.TLSFingerprint TLSFingerPrints []gomatrixserverlib.TLSFingerprint
// How long the keys are valid for. // How long a remote server can cache our server key for before requesting it again.
// Increasing this number will reduce the number of requests made by remote servers
// for our key, but increases the period a compromised key will be considered valid
// by remote servers.
ValidityPeriod time.Duration ValidityPeriod time.Duration
} }