private static PrimitiveSet<Aead> createAeadPrimitiveSet() throws Exception {
    com.google.crypto.tink.aead.AesGcmKey key1 =
        com.google.crypto.tink.aead.AesGcmKey.builder()
            .setParameters(PredefinedAeadParameters.AES128_GCM)
            .setKeyBytes(SecretBytes.copyFrom(KEY, InsecureSecretKeyAccess.get()))
            .setIdRequirement(42)
            .build();
    Aead fullPrimitive1 = AesGcmJce.create(key1);
    com.google.crypto.tink.aead.AesGcmKey key2 =
        com.google.crypto.tink.aead.AesGcmKey.builder()
            .setParameters(PredefinedAeadParameters.AES128_GCM)
            .setKeyBytes(SecretBytes.copyFrom(KEY2, InsecureSecretKeyAccess.get()))
            .setIdRequirement(43)
            .build();
    Aead fullPrimitive2 = AesGcmJce.create(key2);
    // Also create protoKey, because it is currently needed in PrimitiveSet.newBuilder.
    Keyset.Key protoKey1 =
        TestUtil.createKey(
            TestUtil.createAesGcmKeyData(KEY), 42, KeyStatusType.ENABLED, OutputPrefixType.TINK);
    Keyset.Key protoKey2 =
        TestUtil.createKey(
            TestUtil.createAesGcmKeyData(KEY2), 43, KeyStatusType.ENABLED, OutputPrefixType.RAW);
    return PrimitiveSet.newBuilder(Aead.class)
        .addPrimaryFullPrimitive(fullPrimitive1, key1, protoKey1)
        .addFullPrimitive(fullPrimitive2, key2, protoKey2)
        .build();
  }
Returns the type URL that identifies the key type of keys managed by this KeyManager.
java_src/src/test/java/com/google/crypto/tink/RegistryTest.java