public class SecureXStreamFactory extends Object implements XStreamFactory
Constructor and Description |
---|
SecureXStreamFactory(XStreamFactory xStreamFactory,
com.thoughtworks.xstream.security.TypePermission securityProvider) |
SecureXStreamFactory(XStreamFactory xStreamFactory,
com.thoughtworks.xstream.security.TypePermission securityProvider,
List<ConverterFactory> customConverters) |
Modifier and Type | Method and Description |
---|---|
@NotNull com.thoughtworks.xstream.XStream |
createCompactXStream()
Create
XStream backed by given classLoader and driver. |
@NotNull com.thoughtworks.xstream.XStream |
createXStream()
Create default instance of XStream.
|
@NotNull com.thoughtworks.xstream.XStream |
createXStream(@Nullable ClassLoader classLoader)
Create
XStream backed by given classLoader. |
public SecureXStreamFactory(XStreamFactory xStreamFactory, com.thoughtworks.xstream.security.TypePermission securityProvider)
public SecureXStreamFactory(XStreamFactory xStreamFactory, com.thoughtworks.xstream.security.TypePermission securityProvider, List<ConverterFactory> customConverters)
@NotNull public @NotNull com.thoughtworks.xstream.XStream createXStream()
XStreamFactory
createXStream
in interface XStreamFactory
@NotNull public @NotNull com.thoughtworks.xstream.XStream createXStream(@Nullable @Nullable ClassLoader classLoader)
XStreamFactory
XStream
backed by given classLoader.createXStream
in interface XStreamFactory
classLoader
- class loader to use by the created XStream, if null
, the default classloader will
be used@NotNull public @NotNull com.thoughtworks.xstream.XStream createCompactXStream()
XStreamFactory
XStream
backed by given classLoader and driver.createCompactXStream
in interface XStreamFactory
HierarchicalStreamDriver
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.