Skip to content

Encryption examples#1400

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

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

Conversation

@jerjou
Copy link
Contributor

@jerjou jerjou commented Nov 14, 2016

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.

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

jerjou commented Nov 16, 2016

@mziccard FYI

@jerjou
Copy link
Contributor Author

jerjou commented Nov 16, 2016

/cc @garrettjonesgoogle

@coveralls
Copy link

Coverage Status

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

@jerjou jerjou mentioned this pull request Dec 1, 2016
@jerjou
Copy link
Contributor Author

jerjou commented Dec 1, 2016

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:master Dec 1, 2016
github-actions bot 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants