Class CustomerManagedEncryption
- java.lang.Object
-
- com.google.cloud.spanner.encryption.CustomerManagedEncryption
-
- All Implemented Interfaces:
BackupEncryptionConfig,RestoreEncryptionConfig
public class CustomerManagedEncryption extends Object implements BackupEncryptionConfig, RestoreEncryptionConfig
The data is encrypted with a key provided by the customer.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CustomerManagedEncryptionfromProtoOrNull(EncryptionConfig proto)Returns aCustomerManagedEncryptioninstance from the given proto, ornullif the given proto is the default proto instance (i.e.StringgetKmsKeyName()inthashCode()StringtoString()
-
-
-
Method Detail
-
getKmsKeyName
public String getKmsKeyName()
-
fromProtoOrNull
public static CustomerManagedEncryption fromProtoOrNull(EncryptionConfig proto)
Returns aCustomerManagedEncryptioninstance from the given proto, ornullif the given proto is the default proto instance (i.e. there is no encryption config).
-
-