private synchronized Keyset.Key newKey(com.google.crypto.tink.proto.KeyTemplate keyTemplate)
      throws GeneralSecurityException {
    return createKeysetKey(Registry.newKeyData(keyTemplate), keyTemplate.getOutputPrefixType());
  }
Destroys the key material associated with the {@code keyId}.

@throws GeneralSecurityException if the key is not found or it is the primary key
java_src/src/main/java/com/google/crypto/tink/KeysetManager.java