google-nomulus/javatests/google/registry/model
nickfelt 499f1e7dbc Rewrite ServerSecret caching and accessor logic
I'm working on some changes to XsrfTokenManager (b/35388772) and ServerSecret
was crufty enough that I ended up rewriting it.  Now it uses a LoadingCache
with a transaction instead of needlessly race-condition-y static init logic.

It also now supports retrieving its value as either a UUID (the old format
used by XsrfTokenManager) or a byte[].  The latter is more flexible and can
be directly used with HMAC which the new XsrfTokenManager format will employ.

And lastly, I added tests.  In addition, I tested this code on alpha and
verified appropriate operation (XSRF tokens still work from the console and
from regtool; if you remove ServerSecret from datastore and memcache, it
persists a new one).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=148931620
2017-03-07 13:30:18 -05:00
..
billing Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
common Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
contact Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
domain Add new DomainResource.getGracePeriodsOfType() method 2017-03-07 13:28:49 -05:00
eppinput Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
eppoutput Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
export Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
host Tighten up restrictions on domain/host naming on EPP resources 2017-02-07 13:29:03 -05:00
index Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
mark Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ofy Add @VirtualEntity checking to Ofy's deleteWithoutBackup() 2017-02-08 17:31:07 -05:00
poll Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
rde Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
registrar Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
registry Perform minor refactors on premium list code 2017-02-27 11:30:45 -05:00
reporting Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
server Rewrite ServerSecret caching and accessor logic 2017-03-07 13:30:18 -05:00
smd Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
tmch Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
transfer Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
translators Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
BUILD Add MOE equivalence for sync on 2016-12-19 2017-01-09 11:59:04 -05:00
CreateAutoTimestampTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EntityClassesTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
EntityTestCase.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
EppResourceUtilsTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ImmutableObjectTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ModelUtilsTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ResourceCommandTestCase.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
schema.txt Add Cloud KMS based secret storage 2017-02-17 12:22:12 -05:00
SchemaVersionTest.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
UpdateAutoTimestampTest.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00