static KeysetHandle createAes128GcmKeyset() throws GeneralSecurityException {
    // Tink provides pre-baked sets of parameters. For example, here we use AES128-GCM's template.
    // This will generate a new keyset with only *one* key and return a keyset handle to it.
    return KeysetHandle.generateNew(PredefinedAeadParameters.AES128_GCM);
  }
Creates a keyset with a single AES128-GCM key and return a handle to it.

<p>Prerequisites for this example:

<ul>
  <li>Register AEAD implementations of Tink.
</ul>

@return a new {@link KeysetHandle} with a single AES128-GCM key.
@throws GeneralSecurityException if any error occours.
java_src/examples/walkthrough/src/main/java/walkthrough/CreateKeysetExample.java