File tree 1 file changed +7
-1
lines changed
src/main/java/com/google/crypto/tink/integration/awskms
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,14 @@ public Aead getAead(String uri) throws GeneralSecurityException {
189
189
*
190
190
* <p>If {@code credentialPath} is present, load the credentials from that. Otherwise use the
191
191
* default credentials.
192
+ *
193
+ * @deprecated It is preferable to not register KMS clients. Instead, create the AwsKmsClient
194
+ * yourself and call {@link getAead} to get a remote {@code Aead}. Use this {@code Aead} to
195
+ * encrypt a keyset for with {@code TinkProtoKeysetFormat.serializeEncryptedKeyset}, or to
196
+ * create an envelope {@code Aead} using {@code KmsEnvelopeAead.create}.
192
197
*/
193
- public static void register (Optional <String > keyUri , Optional <String > credentialPath )
198
+ @ Deprecated
199
+ /* OSS: public */ static void register (Optional <String > keyUri , Optional <String > credentialPath )
194
200
throws GeneralSecurityException {
195
201
registerWithAwsKms (keyUri , credentialPath , null );
196
202
}
You can’t perform that action at this time.
0 commit comments