Inject RdapAuthorization

We currently create it from injected arguments, and pass it to every function.

Instead, we just create a provider for it and inject it where needed.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=247072517
This commit is contained in:
guyben
2019-05-13 12:34:53 -04:00
committed by jianglai
parent ce7456ea66
commit 3b8a8892bb
10 changed files with 70 additions and 102 deletions
@@ -79,8 +79,7 @@ public class RdapEntityAction extends RdapActionBase {
Optional.empty(),
rdapWhoisServer,
now,
OutputDataType.FULL,
getAuthorization());
OutputDataType.FULL);
}
}
Long ianaIdentifier = Longs.tryParse(pathSearchString);