public static ProtoParametersSerialization checkedCreate(KeyTemplate keyTemplate)
      throws GeneralSecurityException {
    return new ProtoParametersSerialization(
        keyTemplate, checkedToBytesFromPrintableAscii(keyTemplate.getTypeUrl()));
  }
Creates a new {@code ProtoParametersSerialization} object.

<p>If the type URL contains invalid characters, such as spaces, this throws a
GeneralSecurityException
java_src/src/main/java/com/google/crypto/tink/internal/ProtoParametersSerialization.java