Deprecate getKeysetInfo.

PiperOrigin-RevId: 649572648
Change-Id: If75047af7accfefba0a406f14876bb0645256b06
diff --git a/src/main/java/com/google/crypto/tink/KeysetHandle.java b/src/main/java/com/google/crypto/tink/KeysetHandle.java
index 0f38323..c27377d 100644
--- a/src/main/java/com/google/crypto/tink/KeysetHandle.java
+++ b/src/main/java/com/google/crypto/tink/KeysetHandle.java
@@ -719,7 +719,12 @@
   /**
    * Returns the {@link com.google.crypto.tink.proto.KeysetInfo} that doesn't contain actual key
    * material.
+   *
+   * @deprecated Most information can be obtained by calling {@link #getPrimary} or {@link #getAt}
+   *     and inspecting the result. For legacy code, {@code LegacyKeysetSerialization.getKeysetInfo}
+   *     gives the exact same output.
    */
+  @Deprecated
   public KeysetInfo getKeysetInfo() {
     return Util.getKeysetInfo(keyset);
   }