You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+96-39
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,73 @@ To use the AWS Encryption SDK for Java you must have:
21
21
22
22
**Note:** If you use the Oracle JDK, you must also download and install the [Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files](http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html).
23
23
24
+
***Declare a Dependency on the AWS Encryption SDK in Java and its dependencies**
25
+
26
+
This library requires the AWS Cryptographic Material Providers Library in Java, and the KMS and DynamoDB clients from the AWS Java SDK V2.
27
+
28
+
The KMS client from the AWS SDK for Java V1 is an **optional** dependency.
29
+
30
+
**Note:** The AWS Cryptographic Material Providers Library in Java only supports the AWS SDK for Java V2 and requires a HARD dependency on the AWS SDK for Java V2's KMS and DynamoDB clients, regardless of whether a KMS Keyring or Hierarchical Keyring is used.
The AWS Encryption SDK for Java uses Bouncy Castle to serialize and deserialize cryptographic objects.
@@ -41,7 +108,7 @@ You don't need an Amazon Web Services (AWS) account to use the AWS Encryption SD
41
108
42
109
* **To create an AWS account**, go to [Sign In or Create an AWS Account](https://portal.aws.amazon.com/gp/aws/developer/registration/index.html) and then choose **I am a new user.** Follow the instructions to create an AWS account.
43
110
44
-
***To create a symmetric encryption KMS key in AWS KMS**, see [Creating Keys](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html).
111
+
* **To create a key in AWS KMS**, see [Creating Keys](https://docs.aws.amazon.com/kms/latest/developerguide/create-keys.html).
45
112
46
113
* **To download and install the AWS SDK for Java 2.x**, see [Installing the AWS SDK for Java 2.x](https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/getting-started.html).
47
114
@@ -51,40 +118,31 @@ You don't need an Amazon Web Services (AWS) account to use the AWS Encryption SD
51
118
Many users find that the Amazon Corretto Crypto Provider (ACCP) significantly improves the performance of the AWS Encryption SDK.
52
119
For help installing and using ACCP, see the [amazon-corretto-crypto-provider repository](https://github.com/corretto/amazon-corretto-crypto-provider).
53
120
54
-
### Download the AWS Encryption SDK for Java
55
-
You can get the latest release from Maven:
56
-
57
-
```xml
58
-
<dependency>
59
-
<groupId>com.amazonaws</groupId>
60
-
<artifactId>aws-encryption-sdk-java</artifactId>
61
-
<version>3.0.0</version>
62
-
</dependency>
63
-
```
64
-
65
121
### Get Started
66
122
To get started with the AWS Encryption SDK for Java
67
123
68
124
1. Instantiate the AWS Encryption SDK.
69
-
2.Define the master key provider.
125
+
2. Create a Keyring from the AWS Cryptographic Material Providers Library.
70
126
3. Encrypt and decrypt data.
71
127
72
128
```java
73
129
// This sample code encrypts and then decrypts a string using an AWS KMS key.
74
130
// You provide the KMS key ARN and plaintext string as arguments.
0 commit comments