Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 671356607
Change-Id: I387e53977f7d8473bce6b0197bc947e82325e394
  • Loading branch information
LizaTretyakova authored and copybara-github committed Sep 5, 2024
1 parent 3488155 commit 110435e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.google.crypto.tink.InsecureSecretKeyAccess;
import com.google.crypto.tink.KeysetHandle;
import com.google.crypto.tink.KmsClient;
import com.google.crypto.tink.RegistryConfiguration;
import com.google.crypto.tink.TinkJsonProtoKeysetFormat;
import java.io.IOException;
import java.nio.file.Files;
Expand Down Expand Up @@ -104,6 +105,6 @@ public Aead getAead(String keyUri) throws GeneralSecurityException {
checkCredentials();
String keyset = stripPrefix(prefix, keyUri);
return TinkJsonProtoKeysetFormat.parseKeyset(keyset, InsecureSecretKeyAccess.get())
.getPrimitive(Aead.class);
.getPrimitive(RegistryConfiguration.get(), Aead.class);
}
}

0 comments on commit 110435e

Please sign in to comment.