use of com.google.cloud.kms.v1.AsymmetricDecryptResponse in project gapic-generator-java by googleapis.
the class SyncAsymmetricDecryptStringBytestring method syncAsymmetricDecryptStringBytestring.
public static void syncAsymmetricDecryptStringBytestring() throws Exception {
// It may require modifications to work in your environment.
try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
String name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]").toString();
ByteString ciphertext = ByteString.EMPTY;
AsymmetricDecryptResponse response = keyManagementServiceClient.asymmetricDecrypt(name, ciphertext);
}
}
Aggregations