# JAVA S3 Client-Side Encryption Example
Its horrible java
You'll also need bouncycastle set up, then you can run `gradle fatJar`
## Options
This will output the options of the jar
```
java -jar build/libs/s3cse-1.0.jar -h
```
## KMS Encryption
```
java -jar build/libs/s3cse-1.0.jar --crypto-type kms --bucket-name bucket1 --key-name test-cse-kms \
--region eu-west-1 --kms-key-id alias/someKey --authenticated-crypto
```
## Symmetric Encryption
```
java -jar build/libs/s3cse-1.0.jar --crypto-type symmetric --bucket-name bucket1 --key-name test-cse-symmetric \
--region eu-west-1 --key-dir ./keys
```
## Asymmetric Encryption
```
java -jar build/libs/s3cse-1.0.jar --crypto-type asymmetric --bucket-name bucket1 --key-name test-cse-asymmetric \
--region eu-west-1 --key-dir ./keys
```
没有合适的资源?快使用搜索试试~ 我知道了~
将 boto3 资源与 aiobotocore 异步后端一起使用的包装器_python_代码_下载
共55个文件
py:26个
rst:11个
makefile:2个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 195 浏览量
2022-07-02
20:37:22
上传
评论
收藏 121KB ZIP 举报
温馨提示
v9、aioboto3.resource 和 aioboto3.client 方法的重大更改不再存在,创建一个会话然后调用 session.client 等...... 这是出于各种原因,但主要是它阻止了默认会话的寿命比它应该的更长打破事件循环被替换的情况。 .client 和 .resource 函数现在必须用作异步上下文管理器。 现在 aiobotocore 已达到 1.0.1 版本,这是解决各种问题(如存储桶区域重定向和支持 Web 承担角色类型凭据)的工作的副作用,现在必须使用上下文管理器实例化客户端,这通过扩展适用于资源创建者。你过去常常打电话来逃避,res = aioboto3.resource('dynamodb')但现在已经不管用了。如果你真的想这样做,你可以这样做,res = await aioboto3.resource('dynamodb').__aenter__()但你需要记得打电话__aexit__。 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
aioboto3-master.zip (55个子文件)
aioboto3-master
MANIFEST.in 244B
README.rst 7KB
.readthedocs.yml 112B
poetry.lock 152KB
pyproject.toml 2KB
docs
conf.py 8KB
cse.rst 5KB
usage.rst 9KB
make.bat 6KB
installation.rst 1KB
chalice.rst 2KB
changelog.rst 30B
requirements.txt 52B
.gitignore 43B
readme.rst 27B
Makefile 7KB
index.rst 322B
contributing.rst 33B
.github
ISSUE_TEMPLATE.md 335B
workflows
CI.yml 2KB
CONTRIBUTING.rst 3KB
tests
test_patches.py 6KB
test_dynamo.py 5KB
conftest.py 4KB
mock_server.py 2KB
test_basic.py 712B
test_experimental_chalice.py 997B
test_s3_cse.py 16KB
chalice_app
__init__.py 403B
test_s3.py 10KB
resources
make_pr.py 3KB
S3-CSE
src
main
java
demo
UploadObjectKMSKey.java 17KB
README.md 905B
settings.gradle 578B
build.gradle 2KB
LICENSE 11KB
aioboto3
dynamodb
table.py 5KB
__init__.py 0B
experimental
async_chalice.py 2KB
__init__.py 0B
resources
collection.py 6KB
action.py 4KB
__init__.py 0B
factory.py 10KB
response.py 4KB
base.py 489B
__init__.py 503B
s3
inject.py 15KB
__init__.py 0B
cse.py 22KB
session.py 10KB
.gitignore 900B
Makefile 85B
CHANGELOG.rst 5KB
.editorconfig 335B
共 55 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功