mirror of
https://github.com/google/nomulus.git
synced 2025-05-21 19:59:34 +02:00
Inject clock for Tmch validity using InjectRule instead of manually
Basically a less patchy version of [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=202138086
This commit is contained in:
parent
3550045636
commit
b4cb3e0a6f
8 changed files with 14 additions and 20 deletions
|
@ -20,7 +20,6 @@ import static google.registry.config.RegistryConfig.getSingletonCacheRefreshDura
|
|||
import static google.registry.util.ResourceUtils.readResourceUtf8;
|
||||
import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.cache.CacheBuilder;
|
||||
import com.google.common.cache.CacheLoader;
|
||||
import com.google.common.cache.LoadingCache;
|
||||
|
@ -120,8 +119,7 @@ public final class TmchCertificateAuthority {
|
|||
}});
|
||||
|
||||
@NonFinalForTesting
|
||||
@VisibleForTesting
|
||||
public static Clock clock = new SystemClock();
|
||||
private static Clock clock = new SystemClock();
|
||||
|
||||
/**
|
||||
* Check that {@code cert} is signed by the ICANN TMCH CA root and not revoked.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue