use of com.google.cloud.kms.v1.AsymmetricSignResponse in project gapic-generator-java by googleapis.
the class SyncAsymmetricSignCryptokeyversionnameDigest method syncAsymmetricSignCryptokeyversionnameDigest.
public static void syncAsymmetricSignCryptokeyversionnameDigest() throws Exception {
// It may require modifications to work in your environment.
try (KeyManagementServiceClient keyManagementServiceClient = KeyManagementServiceClient.create()) {
CryptoKeyVersionName name = CryptoKeyVersionName.of("[PROJECT]", "[LOCATION]", "[KEY_RING]", "[CRYPTO_KEY]", "[CRYPTO_KEY_VERSION]");
Digest digest = Digest.newBuilder().build();
AsymmetricSignResponse response = keyManagementServiceClient.asymmetricSign(name, digest);
}
}
Aggregations