mirror of
https://github.com/google/nomulus.git
synced 2025-05-01 12:37:52 +02:00
The main goal of this CL is to make the clock constructor injectable (so that tests do not need to use InjectRule to override the clock). The complication is that the clock is used by two static caches (ROOT_CACHE directly and CRL_CACHE indirectly). The clock is not actually used to construct the lock, but rather to verify that the root certificate is within its validity period. For ROOT_CACHE we move the verification to its call sites. This adds a bit overhead because the validity check happens every time the cache is called, not just when the cache is built or refreshed. However this check is rather cheap. Also the resources are included in the jar and the cache is valid for 1 year. Given that we deploy every week, there's not much point making it an expiring cache rather than a static map. For CRL_CACHE we change the key to a tuple of TmchCaMode and X509Certificate. The certificate is no longer provided from the ROOT_CACHE directly and must be verified before it is provided as a cache key. We left the CRL verification inside the cache loader because it (signature verification) is more expensive compared to simple expiration check, and we do not want to do this every time the cache is called. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=218385684 |
||
---|---|---|
.. | ||
BUILD | ||
ClaimsListParser.java | ||
icann-tmch-pilot.crl | ||
icann-tmch-pilot.crt | ||
icann-tmch.crl | ||
icann-tmch.crt | ||
LordnLog.java | ||
LordnRequestInitializer.java | ||
LordnTaskUtils.java | ||
marksdb-public-key.asc | ||
Marksdb.java | ||
NordnUploadAction.java | ||
NordnVerifyAction.java | ||
package-info.java | ||
SmdrlCsvParser.java | ||
TmchCertificateAuthority.java | ||
TmchCrlAction.java | ||
TmchData.java | ||
TmchDnlAction.java | ||
TmchModule.java | ||
TmchSmdrlAction.java | ||
TmchXmlSignature.java |