public class ProxyAdminClientUtils extends Object
Constructor and Description |
---|
ProxyAdminClientUtils() |
Modifier and Type | Method and Description |
---|---|
static DocumentBuilder |
getSecuredDocumentBuilder(boolean setIgnoreComments)
This method provides a secured document builder which will secure XXE attacks.
|
static String[] |
sortNames(String[] names)
Sorts the given array alphabetically.
|
public static String[] sortNames(String[] names)
names
- An array of Stringspublic static DocumentBuilder getSecuredDocumentBuilder(boolean setIgnoreComments) throws ParserConfigurationException
setIgnoreComments
- whether to set setIgnoringComments in DocumentBuilderFactory.ParserConfigurationException
Copyright © 2021 WSO2. All rights reserved.