Class SecretManagerKeyringUpdater
- java.lang.Object
-
- google.registry.keyring.secretmanager.SecretManagerKeyringUpdater
-
public final class SecretManagerKeyringUpdater extends java.lang.Object
TheSecretManagerKeyringUpdater
accumulates updates to aSecretManagerKeyring
and persists them to Cloud Secret Manager when closed.
-
-
Constructor Summary
Constructors Constructor Description SecretManagerKeyringUpdater(KeyringSecretStore secretStore)
-
Method Summary
-
-
-
Constructor Detail
-
SecretManagerKeyringUpdater
@Inject public SecretManagerKeyringUpdater(KeyringSecretStore secretStore)
-
-
Method Detail
-
setRdeSigningKey
public SecretManagerKeyringUpdater setRdeSigningKey(org.bouncycastle.openpgp.PGPKeyPair keyPair) throws java.io.IOException, org.bouncycastle.openpgp.PGPException
- Throws:
java.io.IOException
org.bouncycastle.openpgp.PGPException
-
setRdeStagingKey
public SecretManagerKeyringUpdater setRdeStagingKey(org.bouncycastle.openpgp.PGPKeyPair keyPair) throws java.io.IOException, org.bouncycastle.openpgp.PGPException
- Throws:
java.io.IOException
org.bouncycastle.openpgp.PGPException
-
setRdeReceiverPublicKey
public SecretManagerKeyringUpdater setRdeReceiverPublicKey(org.bouncycastle.openpgp.PGPPublicKey publicKey) throws java.io.IOException
- Throws:
java.io.IOException
-
setBrdaSigningKey
public SecretManagerKeyringUpdater setBrdaSigningKey(org.bouncycastle.openpgp.PGPKeyPair keyPair) throws java.io.IOException, org.bouncycastle.openpgp.PGPException
- Throws:
java.io.IOException
org.bouncycastle.openpgp.PGPException
-
setBrdaReceiverPublicKey
public SecretManagerKeyringUpdater setBrdaReceiverPublicKey(org.bouncycastle.openpgp.PGPPublicKey publicKey) throws java.io.IOException
- Throws:
java.io.IOException
-
setRdeSshClientPublicKey
public SecretManagerKeyringUpdater setRdeSshClientPublicKey(java.lang.String asciiPublicKey)
-
setRdeSshClientPrivateKey
public SecretManagerKeyringUpdater setRdeSshClientPrivateKey(java.lang.String asciiPrivateKey)
-
setSafeBrowsingAPIKey
public SecretManagerKeyringUpdater setSafeBrowsingAPIKey(java.lang.String apiKey)
-
setIcannReportingPassword
public SecretManagerKeyringUpdater setIcannReportingPassword(java.lang.String password)
-
setMarksdbDnlLoginAndPassword
public SecretManagerKeyringUpdater setMarksdbDnlLoginAndPassword(java.lang.String login)
-
setMarksdbLordnPassword
public SecretManagerKeyringUpdater setMarksdbLordnPassword(java.lang.String password)
-
setMarksdbSmdrlLoginAndPassword
public SecretManagerKeyringUpdater setMarksdbSmdrlLoginAndPassword(java.lang.String login)
-
setBsaApiKey
public SecretManagerKeyringUpdater setBsaApiKey(java.lang.String credential)
-
update
public void update()
Persists the secrets in the Secret Manager.Updates to the Secret Manager are not transactional. If an error happens, the successful updates are not reverted; unwritten updates are aborted. This is not a problem right now, since this class is only used by the
UpdateKmsKeyringCommand
, which is invoked manually and only updates one secret at a time.
-
-