Make EncryptEscrowDepositCommand a RemoteApiCommand

Moving to KmsKeyring, any command that uses the Keyring must be a
RemoteApiCommand to work.

TESTED: successfully encrypted a file with no logged errors.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=155673003
This commit is contained in:
guyben 2017-05-10 14:02:07 -07:00 committed by Ben McIlwain
parent 6e3a99a16b
commit c2094eda40

View file

@ -18,6 +18,7 @@ import static google.registry.util.DomainNameUtils.canonicalizeDomainName;
import com.beust.jcommander.Parameter; import com.beust.jcommander.Parameter;
import com.beust.jcommander.Parameters; import com.beust.jcommander.Parameters;
import google.registry.tools.Command.RemoteApiCommand;
import google.registry.tools.params.PathParameter; import google.registry.tools.params.PathParameter;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
@ -25,7 +26,7 @@ import javax.inject.Inject;
/** Command to encrypt an escrow deposit. */ /** Command to encrypt an escrow deposit. */
@Parameters(separators = " =", commandDescription = "Encrypt an escrow deposit") @Parameters(separators = " =", commandDescription = "Encrypt an escrow deposit")
class EncryptEscrowDepositCommand implements Command { class EncryptEscrowDepositCommand implements RemoteApiCommand {
@Parameter( @Parameter(
names = {"-t", "--tld"}, names = {"-t", "--tld"},