Skip to content

Commit 94ec941

Browse files
author
Lucas McDonald
committed
changes
1 parent f5009fd commit 94ec941

File tree

4 files changed

+79
-5
lines changed

4 files changed

+79
-5
lines changed

Examples/runtimes/java/DynamoDbEncryption/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This project contains examples for using the AWS Database Encryption SDK for DynamoDb in Java.
44

5+
Overview:
6+
57
```
68
├── ..
79
├── src
@@ -16,3 +18,26 @@ This project contains examples for using the AWS Database Encryption SDK for Dyn
1618
│ │ └── searchableencryption: Examples demonstrating searchable encryption configuration and usage
1719
└── └── test: Our tests that run these examples
1820
```
21+
22+
## Getting Started
23+
24+
### Development Requirements
25+
26+
* A Java 8 or newer development environment
27+
28+
### Building and Running
29+
30+
Each example includes a runnable `main` method
31+
and a description of the required command line arguments.
32+
To run a given example, inspect its particular setup requirements,
33+
create and/or grant access to any required AWS resources,
34+
and run the example as specified in the file.
35+
36+
## Security
37+
38+
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
39+
40+
## License
41+
42+
This project is licensed under the Apache-2.0 License.
43+

Examples/runtimes/java/Migration/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,26 @@
22

33
This project contains an example project demonstrating how to safely upgrade
44
from the DynamoDb Encryption Client (v2.0.1) to the AWS Database Encryption SDK for DynamoDb (v3.0.0).
5+
6+
## Getting Started
7+
8+
### Development Requirements
9+
10+
* A Java 8 or newer development environment
11+
12+
### Building and Running
13+
14+
Each example includes a runnable `main` method
15+
and a description of the required command line arguments.
16+
To run a given example, inspect its particular setup requirements,
17+
create and/or grant access to any required AWS resources,
18+
and run the example as specified in the file.
19+
20+
## Security
21+
22+
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
23+
24+
## License
25+
26+
This project is licensed under the Apache-2.0 License.
27+

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class SimpleClass {
3333

3434
private String partitionKey;
3535
private int sortKey;
36-
// The next three fields represent attributes that we will perform cryptographic operations on.
36+
// The next three fields represent DynamoDB item attributes that we will perform cryptographic operations on.
3737

3838
// attribute1: Encrypt the data and sign it for authenticity
3939
private String attribute1;
@@ -52,17 +52,17 @@ public class SimpleClass {
5252
public int getSortKey() { return this.sortKey; }
5353
public void setSortKey(int sortKey) { this.sortKey = sortKey; }
5454

55-
@DynamoDbAttribute(value = "encrypt_and_sign")
55+
@DynamoDbAttribute(value = "attribute1")
5656
public String getAttribute1() { return this.attribute1; }
5757
public void setAttribute1(String attribute1) { this.attribute1 = attribute1; }
5858

5959
@DynamoDbEncryptionSignOnly
60-
@DynamoDbAttribute(value = "sign_only")
60+
@DynamoDbAttribute(value = "attribute2")
6161
public String getAttribute2() { return this.attribute2; }
6262
public void setAttribute2(String attribute2) { this.attribute2 = attribute2; }
6363

6464
@DynamoDbEncryptionDoNothing
65-
@DynamoDbAttribute(value = "do_nothing")
65+
@DynamoDbAttribute(value = "attribute3")
6666
public String getAttribute3() { return this.attribute3; }
6767
public void setAttribute3(String attribute3) { this.attribute3 = attribute3; }
6868
}

TestVectors/README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
11
# AWS Database Encryption SDK for DynamoDb Java Test Vectors
22

3-
This project contains code encrypts and decrypts a suite of DynamoDB items to validate the Database Encryption SDK's cross-version compatibility.
3+
This project contains code encrypts and decrypts a suite of DynamoDB items.
4+
This validates the Database Encryption SDK's cross-version compatibility.
5+
6+
## Getting Started
7+
8+
### Development Requirements
9+
10+
* Dafny 4.1.0: https://github.com/dafny-lang/dafny
11+
12+
The code that executes the test vectors is written in Dafny.
13+
You must install the Dafny runtime to compile the Dafny tests into Java.
14+
* A Java 8 or newer development environment
15+
16+
### Building and Running
17+
18+
1. Start in the root `./TestVectors` directory
19+
2. Run `make build_java`
20+
3. Run `make test_java`
21+
22+
## Security
23+
24+
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
25+
26+
## License
27+
28+
This project is licensed under the Apache-2.0 License.
29+

0 commit comments

Comments
 (0)