private static List<Entry> getEntriesFromKeyset(Keyset keyset) {
    List<Entry> result = new ArrayList<>(keyset.getKeyCount());
    for (Keyset.Key protoKey : keyset.getKeyList()) {
      int id = protoKey.getKeyId();
      try {
        Key key = toKey(protoKey);
        result.add(
            new KeysetHandle.Entry(
                key, parseStatus(protoKey.getStatus()), id, id == keyset.getPrimaryKeyId()));
      } catch (GeneralSecurityException e) {
        result.add(null);
      }
    }
    return Collections.unmodifiableList(result);
  }
Returns an immutable list of key objects for this keyset.

<p>If a status is unparseable or parsing of a key fails, there will be "null" in the
corresponding entry.
java_src/src/main/java/com/google/crypto/tink/KeysetHandle.java