static final KeysetHandle fromKeyset(Keyset keyset) throws GeneralSecurityException {
    assertEnoughKeyMaterial(keyset);
    List<Entry> entries = getEntriesFromKeyset(keyset);

    return new KeysetHandle(keyset, entries);
  }
@return a new {@link KeysetHandle} from a {@code keyset}.
@throws GeneralSecurityException if the keyset is null or empty.
java_src/src/main/java/com/google/crypto/tink/KeysetHandle.java