use of org.apache.cxf.configuration.security.TLSClientParametersType in project cxf by apache.
the class TLSClientParametersConfig method createTLSClientParameters.
public static Object createTLSClientParameters(String s) {
StringReader reader = new StringReader(s);
XMLStreamReader data = StaxUtils.createXMLStreamReader(reader);
try {
JAXBElement<TLSClientParametersType> type = JAXBUtils.unmarshall(getContext(), data, TLSClientParametersType.class);
TLSClientParametersType cpt = type.getValue();
return createTLSClientParametersFromType(cpt);
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
throw new RuntimeException(e);
} finally {
try {
StaxUtils.close(data);
} catch (XMLStreamException ex) {
throw new RuntimeException(ex);
}
}
}
Aggregations