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: Examples/runtimes/java/DynamoDbEncryption/src/main/java/software/amazon/cryptography/examples/keyring/RawEcdhKeyringExample.java
+3-3
Original file line number
Diff line number
Diff line change
@@ -278,9 +278,9 @@ public static void DiscoveryRawEcdhKeyringGetItem(
278
278
}
279
279
280
280
// 2. Create the keyring.
281
-
// This keyring uses an ephemeral configuration. This configuration will always create a new
282
-
// key pair as the sender key pair for the key agreement operation. The ephemeral configuration can only
283
-
// encrypt data and CANNOT decrypt messages.
281
+
// This keyring uses a discovery configuration. This configuration will check on decrypt
282
+
// if it is meant to decrypt the message by checking if the configured public key is stored on the message.
283
+
// The discovery configuration can only decrypt messages and CANNOT encrypt messages.
284
284
// The DynamoDb encryption client uses this to encrypt and decrypt items.
0 commit comments