| Constructor and Description |
|---|
KmsMasterKey(AuthenticationDetailsProvider authenticationDetailsProvider,
String region,
String vaultId,
String kmsMasterKeyId)
Initialize KmsMasterKey for encryption.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the OCI clients.
|
String |
decryptDataKey(String encryptedDataKey,
String kmsMasterKeyId)
Decrypt Data key.
|
com.oracle.bmc.encryption.internal.DataKey |
generateDataEncryptionKey(com.oracle.bmc.encryption.internal.CryptoAlgorithm cryptoAlgorithm)
Generate Data encryption key.
|
String |
getKmsMasterKeyId() |
AuthenticationDetailsProvider |
getProvider() |
String |
getRegion() |
String |
getVaultId() |
public KmsMasterKey(AuthenticationDetailsProvider authenticationDetailsProvider, String region, String vaultId, String kmsMasterKeyId)
Initialize KmsMasterKey for encryption. It creates the clients needed to get Keys from OCI KMS service.
authenticationDetailsProvider - Authentication Provider for OCI.region - OCI RegionvaultId - The OCID of the vault.kmsMasterKeyId - The OCID of the KMS master key.public com.oracle.bmc.encryption.internal.DataKey generateDataEncryptionKey(com.oracle.bmc.encryption.internal.CryptoAlgorithm cryptoAlgorithm)
Generate Data encryption key.
generateDataEncryptionKey in interface MasterKeycryptoAlgorithm - Crypto Algorithm.public String decryptDataKey(String encryptedDataKey, String kmsMasterKeyId)
Decrypt Data key.
decryptDataKey in interface MasterKeyencryptedDataKey - encryptedDataKey.kmsMasterKeyId - masterKeyId.public void close()
Close the OCI clients.
public AuthenticationDetailsProvider getProvider()
public String getVaultId()
public String getKmsMasterKeyId()
public String getRegion()
Copyright © 2016–2021. All rights reserved.