Class SecretManagerKeyringUpdater
java.lang.Object
google.registry.keyring.secretmanager.SecretManagerKeyringUpdater
The
SecretManagerKeyringUpdater
accumulates updates to a SecretManagerKeyring
and
persists them to Cloud Secret Manager when closed.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionsetBrdaReceiverPublicKey
(org.bouncycastle.openpgp.PGPPublicKey publicKey) setBrdaSigningKey
(org.bouncycastle.openpgp.PGPKeyPair keyPair) setBsaApiKey
(String credential) setIcannReportingPassword
(String password) setMarksdbLordnPassword
(String password) setRdeReceiverPublicKey
(org.bouncycastle.openpgp.PGPPublicKey publicKey) setRdeSigningKey
(org.bouncycastle.openpgp.PGPKeyPair keyPair) setRdeSshClientPrivateKey
(String asciiPrivateKey) setRdeSshClientPublicKey
(String asciiPublicKey) setRdeStagingKey
(org.bouncycastle.openpgp.PGPKeyPair keyPair) setSafeBrowsingAPIKey
(String apiKey) void
update()
Persists the secrets in the Secret Manager.
-
Constructor Details
-
SecretManagerKeyringUpdater
-
-
Method Details
-
setRdeSigningKey
public SecretManagerKeyringUpdater setRdeSigningKey(org.bouncycastle.openpgp.PGPKeyPair keyPair) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOException
org.bouncycastle.openpgp.PGPException
-
setRdeStagingKey
public SecretManagerKeyringUpdater setRdeStagingKey(org.bouncycastle.openpgp.PGPKeyPair keyPair) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOException
org.bouncycastle.openpgp.PGPException
-
setRdeReceiverPublicKey
public SecretManagerKeyringUpdater setRdeReceiverPublicKey(org.bouncycastle.openpgp.PGPPublicKey publicKey) throws IOException - Throws:
IOException
-
setBrdaSigningKey
public SecretManagerKeyringUpdater setBrdaSigningKey(org.bouncycastle.openpgp.PGPKeyPair keyPair) throws IOException, org.bouncycastle.openpgp.PGPException - Throws:
IOException
org.bouncycastle.openpgp.PGPException
-
setBrdaReceiverPublicKey
public SecretManagerKeyringUpdater setBrdaReceiverPublicKey(org.bouncycastle.openpgp.PGPPublicKey publicKey) throws IOException - Throws:
IOException
-
setRdeSshClientPublicKey
-
setRdeSshClientPrivateKey
-
setSafeBrowsingAPIKey
-
setIcannReportingPassword
-
setMarksdbDnlLoginAndPassword
-
setMarksdbLordnPassword
-
setMarksdbSmdrlLoginAndPassword
-
setBsaApiKey
-
setSqlPrimaryConnectionName
-
setSqlReplicaConnectionName
-
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.
-