Skip to content

Encryption examples - #1400

Merged
garrettjonesgoogle merged 2 commits into
googleapis:masterfrom
jerjou:encryption-examples
Dec 1, 2016
Merged

Encryption examples#1400
garrettjonesgoogle merged 2 commits into
googleapis:masterfrom
jerjou:encryption-examples

Conversation

@jerjou

Copy link
Copy Markdown
Contributor

Diffbase: #1399

Adds two commits with examples for encrypting, decrypting, and updating the encryption key on blobs.

Also adds two methods to Storage.java for being able to set the target of a copy operation with a new encryption key, but without overwriting the other metadata.

@googlebotgooglebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 14, 2016
@jerjou

Copy link
Copy Markdown
ContributorAuthor

@mziccard FYI

@jerjou

Copy link
Copy Markdown
ContributorAuthor

/cc @garrettjonesgoogle

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.04%) to 84.305% when pulling 38c0a1a on jerjou:encryption-examples into 5dfb904 on GoogleCloudPlatform:master.

@jerjoujerjou mentioned this pull request Dec 1, 2016
@jerjou

Copy link
Copy Markdown
ContributorAuthor

FWIW, the travis tests pass, and the appveyor CI failure seems like it's unrelated to this PR.

@garrettjonesgoogle
garrettjonesgoogle merged commit 273de20 into googleapis:masterDec 1, 2016
github-actionsBot pushed a commit that referenced this pull request Jun 23, 2022
🤖 I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
meltsufin pushed a commit that referenced this pull request Dec 22, 2025
🤖 I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
chingor13 pushed a commit that referenced this pull request Jan 6, 2026
chingor13 pushed a commit that referenced this pull request Feb 24, 2026
* utils.
* formatted.
* static mtls config.
* update autoconfig endpoint URL.
* plaintext and mtls S2A address.
* utils.
* formatted.
* static mtls config.
* update autoconfig endpoint URL.
* plaintext and mtls S2A address.
* Use logic in ComputeEngineCredentials to get MDS URL.
* retry MDS request.
* rebranch MtlsConfig as S2AConfig.
* change naming to S2AConfig elsewhere.
* set config in constructor.
* make error message more specific.
* move creation of transportFactory and parser out of loop.
* construct request once.
* move declare to loop.
* remove unnecessary empty constructor.
* Use default retry value.
* set config in constructor.
* make MDS MTLS autoconfig endpoint a static constant.
* make S2AConfig private.
* make constants package private.
* Use Builder pattern.
* Improve javadoc.
* Do not retry if autoconfig endpoint doesn't exist.
* add comment around catching IOException.
* Try and parse each address returned from MDS.
* update license dates on added files.
* Use Google Java Http client built in retry.
* Explain why no format check.
* run linter.
* move it all into 1 try block.
* MockMetadataServerTransport populate content on 200.
* MockMetadataServerTransport uses s2aContentMap.
* Run mvn fmt:format.
* Use ImmutableMap.
* update javadoc to reference AIP.
* Don't nest try/catch + add some comments about why no throw errors.
* update javadoc for each public method.
* add experimental note.
* format.
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 11, 2026
🤖 I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
chingor13 pushed a commit that referenced this pull request Mar 12, 2026
* utils.
* formatted.
* static mtls config.
* update autoconfig endpoint URL.
* plaintext and mtls S2A address.
* utils.
* formatted.
* static mtls config.
* update autoconfig endpoint URL.
* plaintext and mtls S2A address.
* Use logic in ComputeEngineCredentials to get MDS URL.
* retry MDS request.
* rebranch MtlsConfig as S2AConfig.
* change naming to S2AConfig elsewhere.
* set config in constructor.
* make error message more specific.
* move creation of transportFactory and parser out of loop.
* construct request once.
* move declare to loop.
* remove unnecessary empty constructor.
* Use default retry value.
* set config in constructor.
* make MDS MTLS autoconfig endpoint a static constant.
* make S2AConfig private.
* make constants package private.
* Use Builder pattern.
* Improve javadoc.
* Do not retry if autoconfig endpoint doesn't exist.
* add comment around catching IOException.
* Try and parse each address returned from MDS.
* update license dates on added files.
* Use Google Java Http client built in retry.
* Explain why no format check.
* run linter.
* move it all into 1 try block.
* MockMetadataServerTransport populate content on 200.
* MockMetadataServerTransport uses s2aContentMap.
* Run mvn fmt:format.
* Use ImmutableMap.
* update javadoc to reference AIP.
* Don't nest try/catch + add some comments about why no throw errors.
* update javadoc for each public method.
* add experimental note.
* format.
suztomo pushed a commit to suztomo/google-cloud-java that referenced this pull request Mar 23, 2026
suztomo pushed a commit that referenced this pull request Mar 30, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
lqiu96 pushed a commit that referenced this pull request Apr 1, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
meltsufin pushed a commit that referenced this pull request Apr 29, 2026
🤖 I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
meltsufin pushed a commit that referenced this pull request May 1, 2026
🤖 I have created a release *beep* *boop*
---
### Updating meta-information for bleeding-edge SNAPSHOT release.
---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
* docs: Remove unnecessary comment
PiperOrigin-RevId: 474807836
Source-Link: googleapis/googleapis@dfd68f7
Source-Link: https://github.com/googleapis/googleapis-gen/commit/fe305e0252bc9a88466e1b96c2f2464dd729b978
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmUzMDVlMDI1MmJjOWE4ODQ2NmUxYjk2YzJmMjQ2NGRkNzI5Yjk3OCJ9
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* feat: publish the RequestStats proto
PiperOrigin-RevId: 476399682
Source-Link: googleapis/googleapis@0c4e682
Source-Link: https://github.com/googleapis/googleapis-gen/commit/ff87f69aad1f2ff06772f917eecbea649797d9d5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmY4N2Y2OWFhZDFmMmZmMDY3NzJmOTE3ZWVjYmVhNjQ5Nzk3ZDlkNSJ9
* 🦉 Updates from OwlBot post-processor
See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
* add to clirr ignored differences
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Kristen O'Leary <kaoleary@google.com>
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yesThis human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jerjou@coveralls@googlebot@garrettjonesgoogle