Class JsonConfigConverter


  • public class JsonConfigConverter
    extends Object
    Converts json representation of Keycloak config to DMR operations.
    Author:
    Stan Silvert ssilvert@redhat.com (C) 2016 Red Hat Inc.
    • Constructor Detail

      • JsonConfigConverter

        public JsonConfigConverter()
    • Method Detail

      • convertJsonConfig

        public static List<org.jboss.dmr.ModelNode> convertJsonConfig​(String json,
                                                                      org.jboss.as.controller.PathAddress subsysAddress)
                                                               throws IOException
        Convert keycloak-server.json to DMR operations that write to standalone.xml or domain.xml.
        Parameters:
        json - The json representation of the config.
        subsysAddress - The management model address of the keycloak-server subsystem.
        Returns:
        A list of DMR operations.
        Throws:
        IOException - If the json can not be parsed.