@Override
  public boolean equalsKey(Key o) {
    if (!(o instanceof LegacyKmsAeadKey)) {
      return false;
    }
    LegacyKmsAeadKey that = (LegacyKmsAeadKey) o;
    return that.parameters.equals(parameters) && Objects.equals(that.idRequirement, idRequirement);
  }
Describes an Aead backed by a KMS.

<p>The KMS is specified by {@code getParameters().getKeyUri()}. When creating an Aead from this
object, Tink looks an {@link com.google.crypto.tink.KmsClient} in the global table of {@link
com.google.crypto.tink.KmsClients}. This means that the key is inappropriate in cases where there
are multiple KMS backends or multiple credentials in a binary. Because of this, we recommend to
create the {@link Aead} directly from the KmsClient you need.
java_src/src/main/java/com/google/crypto/tink/aead/LegacyKmsAeadKey.java