Package org.apache.iceberg.gcp
Class GcpKeyManagementClient
java.lang.Object
org.apache.iceberg.gcp.GcpKeyManagementClient
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,org.apache.iceberg.encryption.KeyManagementClient
public class GcpKeyManagementClient
extends Object
implements org.apache.iceberg.encryption.KeyManagementClient
Key management client implementation that uses Google Cloud Key Management. To be used for
encrypting/decrypting keys with a KMS-managed master key (by referencing its key ID)
Uses GcpKeyManagementClient.ByteStringShim to ensure this class works with and without iceberg-gcp-bundle.
Since the bundle relocates ByteString, all related methods need to be
loaded dynamically. During runtime if the relocated class is observed, it will be preferred over
the original one.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.encryption.KeyManagementClient
org.apache.iceberg.encryption.KeyManagementClient.KeyGenerationResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidinitialize(Map<String, String> properties) unwrapKey(ByteBuffer wrappedKey, String wrappingKeyId) wrapKey(ByteBuffer key, String wrappingKeyId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.encryption.KeyManagementClient
generateKey, supportsKeyGeneration
-
Constructor Details
-
GcpKeyManagementClient
public GcpKeyManagementClient()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceorg.apache.iceberg.encryption.KeyManagementClient
-
wrapKey
- Specified by:
wrapKeyin interfaceorg.apache.iceberg.encryption.KeyManagementClient
-
unwrapKey
- Specified by:
unwrapKeyin interfaceorg.apache.iceberg.encryption.KeyManagementClient
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.iceberg.encryption.KeyManagementClient
-