@Deprecated
  public List<KeyHandle> getKeys() {
    ArrayList<KeyHandle> result = new ArrayList<>();
    for (Keyset.Key key : keyset.getKeyList()) {
      KeyData keyData = key.getKeyData();
      result.add(
          new InternalKeyHandle(
              new ProtoKey(keyData, KeyTemplate.fromProto(key.getOutputPrefixType())),
              key.getStatus(),
              key.getKeyId()));
    }
    return Collections.unmodifiableList(result);
  }
Returns the keyset data as a list of {@link KeyHandle}s.

<p>Please do not use this function in new code. Instead, use {@link #getAt}.

@deprecated Use "getAt" instead.
java_src/src/main/java/com/google/crypto/tink/KeysetHandle.java