Rename DNL and SMDRL "login" to "loginAndPassword"

They are passed around in the format username:password, whereas just saying
"login" implies it's just a username and not necessarily also a secret
password. Putting password in the variable name makes it obvious what this is
and reduces the likelihood of anyone ever logging it or otherwise using it
inappropriately.

Note that this does not require data migrations as the actual key used to store
the data in KMS remains unchanged.

This is a follow-up to []

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=231253964
This commit is contained in:
mcilwain 2019-01-28 11:13:15 -08:00 committed by Ben McIlwain
parent 0130f91830
commit f0c677b18b
17 changed files with 65 additions and 62 deletions

View file

@ -52,9 +52,9 @@ public final class FakeKeyringModule {
loadBytes(FakeKeyringModule.class, "pgp-private-keyring-registry.asc");
private static final String ICANN_REPORTING_PASSWORD = "yolo";
private static final String SAFE_BROWSING_API_KEY = "a/b_c";
private static final String MARKSDB_DNL_LOGIN = "dnl:yolo";
private static final String MARKSDB_DNL_LOGIN_AND_PASSWORD = "dnl:yolo";
private static final String MARKSDB_LORDN_PASSWORD = "yolo";
private static final String MARKSDB_SMDRL_LOGIN = "smdrl:yolo";
private static final String MARKSDB_SMDRL_LOGIN_AND_PASSWORD = "smdrl:yolo";
private static final String JSON_CREDENTIAL = "json123";
@Provides
@ -111,8 +111,8 @@ public final class FakeKeyringModule {
}
@Override
public String getMarksdbSmdrlLogin() {
return MARKSDB_SMDRL_LOGIN;
public String getMarksdbSmdrlLoginAndPassword() {
return MARKSDB_SMDRL_LOGIN_AND_PASSWORD;
}
@Override
@ -121,8 +121,8 @@ public final class FakeKeyringModule {
}
@Override
public String getMarksdbDnlLogin() {
return MARKSDB_DNL_LOGIN;
public String getMarksdbDnlLoginAndPassword() {
return MARKSDB_DNL_LOGIN_AND_PASSWORD;
}
@Override