Skip to content

Commit e09c590

Browse files
committed
Add back and deprecate createEncryptionManager.
1 parent 6e66f9c commit e09c590

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

core/src/main/java/org/apache/iceberg/encryption/EncryptionUtil.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,19 @@ public static KeyManagementClient createKmsClient(Map<String, String> catalogPro
7171
return kmsClient;
7272
}
7373

74+
/**
75+
* Create a standard encryption manager.
76+
*
77+
* @deprecated will be removed in 1.11.0; use {@link #createEncryptionManager(List, Map,
78+
* KeyManagementClient)} instead.
79+
*/
80+
@Deprecated
7481
public static EncryptionManager createEncryptionManager(
82+
Map<String, String> tableProperties, KeyManagementClient kmsClient) {
83+
return createEncryptionManager(List.of(), tableProperties, kmsClient);
84+
}
85+
86+
static EncryptionManager createEncryptionManager(
7587
List<EncryptedKey> keys, Map<String, String> tableProperties, KeyManagementClient kmsClient) {
7688
Preconditions.checkArgument(kmsClient != null, "Invalid KMS client: null");
7789
String tableKeyId = tableProperties.get(TableProperties.ENCRYPTION_TABLE_KEY);

0 commit comments

Comments
 (0)